PHP code example of marick / laravel-mysql-enhanced
1. Go to this page and download the library: Download marick/laravel-mysql-enhanced library. Choose the download type require. 2. Extract the ZIP file and open the index.php. 3. Add this code to the index.php.
<?php
require_once('vendor/autoload.php');
/* Start to develop here. Best regards https://php-download.com/ */
marick / laravel-mysql-enhanced example snippets
User::select('users.email', 'posts.*')
->joinSubLateral(
Post::whereColumn('posts.user_id', 'users.id')
->orderBy('price', 'desc')
->limit(3),
'posts',
)