Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PHP

getname eloquent slug laravel

/**
 * Get the route key for the model.
 *
 * @return string
 */
public function getRouteKeyName()
{
    return 'slug';
}
Source by laravel.com #
 
PREVIOUS NEXT
Tagged: #getname #eloquent #slug #laravel
ADD COMMENT
Topic
Name
4+7 =