About 18,200,000 results
Open links in new tab
  1. Get Specific Columns Using “With()” Function in Laravel Eloquent

    May 20, 2017 · I faced the same issue while using belongsToMany relationship with my user model (Laravel 8.x.x). After a long search and trial and test method. I found out this answer. …

  2. Laravel - Eloquent "Has", "With", "WhereHas" - What do they mean?

    May 14, 2015 · Laravel changes this code to one SQL query: select * from `orders` where exists ( select * from `order_items` where `orders`.`id` = `order_items`.`order_id` ) whereHas. The …

  3. How to install all required PHP extensions for Laravel?

    Different versions of PHP for different versions of Laravel: if you want to have different version of Laravel, you need different version of PHP, and you can have it with php-fpm. Run queue jobs …

  4. php - Laravel Checking If a Record Exists - Stack Overflow

    Feb 11, 2022 · It is a bit late but it might help someone who is trying to use User::find()->exists() for record existence as Laravel shows different behavior for find() and where() methods. …

  5. laravel - How can I resolve "Your requirements could not be …

    Mar 28, 2015 · I am facing the same issue in Laravel v8.49.0 (PHP v8.0.6). Using Composer through install packages I recently resolved the same issue by installing two packages:- …

  6. php - Clear all cache in Laravel with artisan - Stack Overflow

    Jan 7, 2021 · Clearing All Cache To clear all Laravel's cache, just run the following command. php artisan optimize:clear. There are several ways to empty the Laravel cache because it has …

  7. Laravel - create model, controller and migration in single artisan ...

    Dec 16, 2021 · As mentioned in the comments by @arun in newer versions of laravel > 5.6 it is possible to run following command: php artisan make:model Todo -a -a, --all Generate a …

  8. php - What are Facades used in Laravel? - Stack Overflow

    Laravel ships with many facades which provide access to almost all of Laravel's features. Laravel facades serve as "static proxies" to underlying classes in the service container, providing the …

  9. php - What is the difference between { { }} and {!! !!} in laravel ...

    Jan 27, 2016 · In Laravel {{ }} should pass data as plain text with HTML escaping while {!! !!} pass data as content as-is, without any HTML escaping.

  10. laravel - A JOIN With Additional Conditions Using Query Builder or ...

    May 31, 2013 · Not quite sure if the between clause can be added to the join in laravel. Notes: DB::raw() instructs Laravel not to put back quotes. By passing a closure to join methods you …

Refresh