Search
 
SCRIPT & CODE EXAMPLE
 

PHP

What does "as" keyword mean in Laravel route ?

As keyword is in older version, if you change the documentation to 5.2 you can see the as keyword. In newer version it's ->name('route.name')
Comment

route() and with() in laravel

Route::get('user/{id}/profile', function ($id) {
    //
})->name('profile');

$url = route('profile', ['id' => 1, 'photos' => 'yes']);

// /user/1/profile?photos=yes
Comment

PREVIOUS NEXT
Code Example
Php :: date to string php 
Php :: make migration file in laravel 
Php :: changing created_at to short date time 
Php :: get current month php 
Php :: random string in php 
Php :: PHP print — Output a string 
Php :: option selected in laravel blade 
Php :: laravel throw function 
Php :: php artisan tinker PsyExceptionRuntimeException Unable to create PsySH runtime directory 
Php :: laravel eloquent mass update 
Php :: php check if object is empty 
Php :: destrroy a session php 
Php :: check if the request is ajax request in laravel 
Php :: laravel check if request has value 
Php :: full month name php 
Php :: laravel set session timeout 
Php :: store fetched data into array php 
Php :: get request data in observer laravel 
Php :: convert time to 24 hour format laravel 
Php :: Artisan command on live server 
Php :: remove certain haracters from a string php 
Php :: implode array keys in php 
Php :: Laravel assets url issue 
Php :: php query pdo 
Php :: laravel wherein example 
Php :: update session laravel 
Php :: laravel form request validation unique update 
Php :: laravel model where 
Php :: name of today php 
Php :: laravel create request 
ADD CONTENT
Topic
Content
Source link
Name
3+1 =