Laravel Corcel info Corcel = A collection of Model classes that allows you to get data directly from a WordPress database.

DEMO site: Laravel Corcel Example – data from a WordPress

Are you interested? Write me: webeswork@yahoo.com
###############################################

ChatGPT: How get Categories in Laravel Corcel (WordPress Categories)?

use Corcel\Model\Term;

// Összes kategória lekérése
$categories = Term::where('taxonomy', 'category')->get();

// Minden kategória nevének kiírása
foreach ($categories as $category) {
echo $category->name . "
";
}

###################################
Corcel is a collection of PHP classes built on top of Eloquent ORM (from Laravel framework), that provides a fluent interface to connect and get data directly from a WordPress database.

You can use WordPress as the backend (administration panel) or CMS, for inserting posts, custom types, etc, and any other PHP app in the other side querying those data (as a Model layer). It’s easier to use Corcel with Laravel, but you’re free to use it with any PHP project that uses Composer.

###########################

Getting started with Corcel
https://hofmannsven.com/2021/corcel

Using Corcel in Laravel to CRUD WordPress Data

https://adevait.com/laravel/using-corcel-in-laravel

Use WordPress as a Headless CMS for your Laravel website

https://inovector.com/blog/wordpress-as-a-headless-cms-for-your-laravel-website

Laravel Corcel Manual:
https://github.com/corcel/corcel?tab=readme-ov-file#table-of-contents

If you want to retrieve a custom field created
you have to install the corcel/acf plugin – click here for more information – and call the custom field like this
https://github.com/corcel/acf

 

#################

WordPress migration to Statamic
https://www.luckymedia.dev/blog/wordpress-migration-to-statamic-v3-part-1

########################################

If your database table has so many rows, it is better to avoid paginate and do `simplePaginate` instead.
simplePaginate will not count the total no of rows and the query will be much faster than the paginate approach.

https://www.facebook.com/groups/1875707456014085/?multi_permalinks=3524127694505378&hoisted_section_header_type=recently_seen

Laravel 10+ Vite Vue info

this is missing from tutorials , vite.config.js:

resolve: {
alias: {
vue: 'vue/dist/vue.esm-bundler.js',
},
},

How to Install Vue 3 in Laravel 9 with Vite
https://techvblogs.com/blog/how-to-install-vue-3-in-laravel-9-with-vite

How to Add Vue.js 3 into Laravel 10 with Vite: Quick Tutorial

https://laraveldaily.com/post/how-to-add-vue-3-laravel-10-vite-quick-tutorial

Vite, Vue 3 Multi-Component

How To Install Vue 3 In Laravel 10 With Vite
https://medium.com/@DevMahmoudAdel/how-to-install-vue-3-in-laravel-10-with-vite-5c7749afd29c

Vite is a modern frontend build tool that provides an extremely fast development environment and bundles your code for production. When building applications with Laravel, you will typically use Vite to bundle your application’s CSS and JavaScript files into production ready assets.
https://laravel.com/docs/10.x/vite

Livewire info

Building modern web apps is hard. Tools like Vue and React are extremely powerful, but the complexity they add to a full-stack developer’s workflow is insane.

Livewire 2.x Requirements:

Laravel version 10 or later
PHP version 8.1 or later

https://livewire.laravel.com/docs/quickstart

###########################################

Livewire 2.x Requirements:
PHP 7.2.5 or higher
Laravel 7.0 or higher

https://laravel-livewire.com/docs/2.x/installation

###########################################

Mi az a Laravel Livewire?
https://mernokinformatikus.hu/mi-az-a-laravel-livewire/

Laravel news

Deploying laravel on shared hosts

https://laravelsharedhosting.novate.co.uk/

As a solo developer or a small team without DevOps resources, shared hosting can play a useful part in your server resource pool. Often you can deploy many sites under a single monthly fee (rather than per droplet) meaning you can try out ideas without spinning up additional costs.

#######################################################

How to create custom middleware in Laravel
https://inspector.dev/how-to-create-custom-middleware-in-laravel/?fbclid=IwAR3VqYI40iKkWupYj42H-BnIQ5HwC3zIY7GeC2_wi8IjfypGJz5r0GN3gag


############################

19 Laravel Ecosystem Explained – Part 1

create Objects in Laravel

Using Service Container to create Objects in Laravel

https://dev.to/100r0bh/using-service-container-to-create-objects-in-laravel-24gf