How to fix Class ‘App\Http\Controllers\Auth’ not found

in Class ‘App\Http\Controllers\Auth’ not found Resolve Error for Go to YourCustomController after that add use Auth; at the top on the Controller Page. Display Error: Class ‘App\Http\Controllers\Auth’ not found -FatalErrorException in LoginController.php FatalErrorException in LoginController.php line 52: Class ‘App\Http\Controllers\Admin\Auth\Auth’ not found in LoginController.php line 52 Solution for “Class ‘App\Http\Controllers\Auth’ not found” use Auth; // Illuminate\Support\Facades\Auth … Read more How to fix Class ‘App\Http\Controllers\Auth’ not found

laravel print last query | Executed | Sql | php | tutorials

In this article, We will know you how to get and print last query in laravel eloquent. manytimes while working with laravel any project php framework you required to print last executed query for source code tetsing with debugging . print last query in laravel You can use laravel DB::getQueryLog() method to get all an … Read more laravel print last query | Executed | Sql | php | tutorials

Laravel if statement multiple conditions – if condition in Laravel

I will learn how to use if condition in laravel select Db Raw Query with Conditional (@if, @else, @elseif, @isset, @empty, and @unless) Statements in Laravel. i can use mysql case when statement with db raw in laravel. If you want to use mysql method then you must have to use db raw method. in … Read more Laravel if statement multiple conditions – if condition in Laravel

how to compare two strings in PHP if condition?

Question : How to compare two strings in PHP? :- PHP strcmp() You can use the PHP strcmp() function to simply compare two strings. This Internal (built-in) functions takes two strings user_data_user_data_string1 and user_data_user_data_string2 as parameters. The strcmp() Internal (built-in) functions returns < 0 if user_data_user_data_string1 is less than user_data_user_data_string2; returns > 0 if user_data_user_data_string1 … Read more how to compare two strings in PHP if condition?