PHPStorm Auto Import in File Scope

For example you’re developing an app in Laravel. You want to add a new Route to routes/web.phpfile. Route::get(‘payment’, ‘App\\Http\\Controllers\[email protected]’); As you can see you must write class and method name as string. But you can make this better way: Route::get(‘payment’, [App\Http\Controller\PaymentController::class, ‘pay’]); This is better then other becouse you can open Devamı…

Laravel “Specified key was too long” error solution

For laravel 5.7 to 6.0 Steps to followed Go to App\Providers\AppServiceProvider.php. Add this to provider use Illuminate\Support\Facades\Schema; in top. Inside the Boot function Add this Schema::defaultStringLength(191); that all, Enjoy. https://stackoverflow.com/a/51039039/2132069

önce , admin tarafından