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

Miniconda on Ubuntu (Xubuntu)

,

Setting up Miniconda on Ubuntu

https://medium.com/featurepreneur/setting-up-miniconda-on-ubuntu-4bf6bece6f9b

$ sudo wget -c https://repo.anaconda.com/miniconda/Miniconda3-latest-Linux-x86_64.sh
$ sudo chmod +x Miniconda3-latest-Linux-x86_64.sh

conda activate
conda env list

conda create -n py39 python=3.9

# To activate this environment, use
#
# $ conda activate py39
#
# To deactivate an active environment, use
#
# $ conda deactivate

####################x

Miniconda install:
https://docs.anaconda.com/free/miniconda/

Getting started with conda
https://docs.conda.io/projects/conda/en/latest/user-guide/getting-started.html

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

Test:
conda create –prefix ./env pandas numpy scikit-learn

# To activate this environment, use
#
# $ conda activate /home/zsolt/Desktop/sample_project/env
#
# To deactivate an active environment, use
#
# $ conda deactivate

conda activate /home/zsolt/Desktop/sample_project/env

conda env list

jupyter notebook

conda install jupyter

conda create –prefix ./env pandas numpy scikit-learn jupyter

#########################x
start:
jupyter notebook

conda create –prefix ./env pandas numpy matplotlib scikit-learn
conda install jupyter

CTRL + C stop

ml-project:
conda create –prefix ./env pandas numpy matplotlib scikit-learn jupyter

Laravel > No vendor folder at install| No such file or directory in /autoload.php

composer update not working

“Your requirements could not be resolved to an installable set of packages.

Problem 1
– laravel/pint[v1.0.0, …, v1.14.0] require ext-xml * -> it is missing from your system. Install or enable PHP’s xml extension.
– Root composer.json requires laravel/pint ^1.0 -> satisfiable by laravel/pint[v1.0.0, …, v1.14.0].

Stackoverflow: require ext-xml * -> it is missing from your system. Install or enable PHP’s xml extension

https://stackoverflow.com/questions/68873115/require-ext-xml-it-is-missing-from-your-system-install-or-enable-phps-xml

Solution:

sudo apt-get install php-xml

#########################################
Bonus:
No Application Encryption Key Has Been Specified
https://stackoverflow.com/questions/44839648/no-application-encryption-key-has-been-specified

php artisan key:generate
php artisan config:cache

#####################x

show hidden files:

ctrl + H => works !

#########################xx
php.ini error show, log

Xubuntu install with development environment

How to install Chrome on Ubuntu through the web

https://www.xda-developers.com/how-install-chrome-ubuntu/

wget https://dl.google.com/linux/direct/google-chrome-stable_current_amd64.deb

sudo dpkg -i google-chrome-stable_current_amd64.deb

sudo apt -f install

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

Laragon Alternatives for Linux
https://alternativeto.net/software/laragon/?platform=linux&p=2

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

How to Install XAMPP on Ubuntu

https://phoenixnap.com/kb/how-to-install-xampp-on-ubuntu

How To Change PHP Version Of Your Xampp Server Easy and Quick

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

How To Install Git on Ubuntuhttps://phoenixnap.com/kb/how-to-install-git-on-ubuntu

###############################
Alternatives to TortoiseGIT for Ubuntu: Integrating GIT with Nautilus

https://devicetests.com/alternatives-to-tortoisegit-for-ubuntu-integrating-git-with-nautilus

cd /opt/lampp/htdocs

git clone https://github.com/felhasznalonev/projektnev.git
###############################

Github Tutorial: Generate Personal Access token to Clone and Push Private Repository

Managing your personal access tokens

https://docs.github.com/en/enterprise-server@3.9/authentication/keeping-your-account-and-data-secure/managing-your-personal-access-tokens

###############################
Create and store your GitHub personal access token

https://www.pragmaticlinux.com/2023/05/create-and-store-your-github-personal-access-token/

Storing Git Credentials with Git Credential Helper

https://techexpertise.medium.com/storing-git-credentials-with-git-credential-helper-33d22a6b5ce7

###############################
fatal: could not create work tree dir ‘myproject’: Permission denied
/opt/lampp$ sudo chmod 777 htdocs

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

VSCODE install ubuntu:
https://code.visualstudio.com/docs/setup/linux
#############################
xampp start on ubuntu:
sudo /opt/lampp/lampp start

#############################################x

zsolt@zsolt-Inspiron-5558:/opt/lampp/htdocs/laravel10_auction$ php artisan serve
Command ‘php’ not found, but can be installed with:
sudo apt install php8.1-cli # version 8.1.2-1ubuntu2.14, or
sudo apt install php-cli # version 2:8.1+92ubuntu1
################################
NOOOO,nem kell
How to Install PHP 8.2 on Ubuntu 22.04

https://techvblogs.com/blog/install-php-8-2-ubuntu-22-04

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

How to Install and Use Composer on Ubuntu 22.04 | Step-by-Step
https://www.cherryservers.com/blog/how-to-install-composer-ubuntu

#####################################
delete php from ubuntu:
sudo apt-get purge php.*
#####################################

How to Install PHP Composer in Linux [Ubuntu,Debian,CentOS]

https://operavps.com/docs/install-php-composer-in-linux/

Linux Distros for Old Laptops, Xubuntu

How to install Xubuntu 22.04 LTS

Lubuntu vs Xubuntu: Which is the better Ubuntu-based platform?
https://blog.sudobits.com/2023/05/15/lubuntu-vs-xubuntu-which-is-the-better-ubuntu-based-platform/

Xubuntu: https://hu.wikipedia.org/wiki/Xubuntu

10 Best Linux Distros for Old Laptops in 2024
https://linuxsimply.com/best-linux-distros-for-old-laptops/

Best Linux Distributions for an Old Laptop in 2023

https://linuxhint.com/best-old-laptop-linux-distributions/

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

ISO to USB

ISO to USB is a free and small software that can burn the ISO image file directly to the USB drives, these USB drives include USB flash drives, memory sticks and other USB storage devices, it also supports to create a bootable USB disk with Windows operating systems. Freeware.

https://www.isotousb.com/

ISO fájlból bootolható pendrájv, pár kattintással
https://hvg.hu/tudomany/ISO_fajlbol_bootolhato_pendrajv_par_kattintassal_3

Dell Inspiron Xubuntu install from USB pendrive (start , boot)

useful (selecting boot): How to Boot From a USB Drive on Dell laptop to install Windows