Github , Personal Access Token generating
git remote set-url origin https://< token > /< username >/< repo name >
How To Generate A Personal Access Token In GitHub And Use It To Push Using Git
git remote set-url origin https://< token > /< username >/< repo name >
How To Generate A Personal Access Token In GitHub And Use It To Push Using Git
Laravel + Vite. Production build redirecting to /build path in url
https://stackoverflow.com/questions/74014240/laravel-vite-production-build-redirecting-to-build-path-in-url
Laravel Vite Js change of public directory
https://laracasts.com/discuss/channels/code-review/laravel-vite-js-change-of-public-directory
outDir
https://laracasts.com/discuss/channels/vite/viteconfigjs-or-configvitephp?page=1&replyId=809235
Set vite public path
https://laracasts.com/discuss/channels/vite/set-vite-public-path
Moving vite config to subfolder?
https://laracasts.com/discuss/channels/vite/moving-vite-config-to-subfolder
Run Laravel Vite Vue.js build on production without Artisan
I had to add in vite.config.js corresponding path
laravel({
input: [
'resources/sass/app.scss',
'resources/js/app.js',
'resources/css/app.css',
],
refresh: true,
}),
npm run dev – at development, npm running
npm run build – npm not running
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.