DESC laravel
$posts = Post::orderBy('id', 'DESC')->get();$posts = Post::orderBy('id', 'DESC')->get();
->orderBy('id', 'DESC');/**
* Show the application dashboard.
*
* @return \Illuminate\Http\Response
*/
public function index()
{
$messages = Message::select("*")
->where('receiver_id',$id)
->orderBy('created_at', 'desc')
->get();
dd($messages);
}
Also in PHP:
- Error: Cannot redeclare composerRequire1d8e02dff94f518b7a14ddcb6710f10d() (previously declared in /Applications/XAMPP/xamppfiles/htdocs/all4learn2/Vendor/composer/autoload_real.php:66)
- ?? ' ' operator in php laravel
- $e = array("red", "green", "blue"); echo intval($e) . "<br>";
- 1 PDOException::("SQLSTATE[42000]: Syntax error or access violation: 1071 Specified key was too long; max key length is 767 bytes")
- error reporting ini set dusplay errors
- date time to date php
- eloquent where in
- Expression #1 of ORDER BY contains aggregate function and applies to the result of a non-aggregated query laravel
- do_shortcode
- __construct
- Allowed memory size of 1610612736 bytes exhausted xampp
- create laravel 5.8 project using composer
- How to calculate the sum of values in a list PHP
- buddypress author link
- check if delete query was successful laravel
- delete dduplicated from array php
- How to format date from datetime php
- category_rewrite_rules wordpress.org
- PHP Warning: PHP Startup: Unable to load dynamic library 'openssl' window
- Error: Cookies are blocked or not supported by your browser. You must enable cookies to use WordPress.
- base64decode php
- Artisan::call('db:seed', array('--class' => 'YourSeeder Class'));
- case upper php
- find curren monday in laravel carbon