laravel - Side 4

Oprettelse af en ny cookie
Problem Du vil oprette en cookie. Opløsning Brug Cookie :: lav () Du kan bruge denne metode til at generere en ny cookie. Husk, dette sender ikke en c...
Henter en cookie fra anmodningen
Problem Du vil kontrollere en cookieværdi, der sendes til din ansøgning. Du ved, du kunne bruge PHP $ _COOKIE superglobal, men ønsker at gøre det på L...
Åbning af en ny HTML-formular
Problem Du vil starte en formular. Du ved, du kunne bruge HTML tag direkte, men vil bruge Laravels Form-facade. Opløsning Brug Form :: åben () metode...
Bestemmelse af, om den aktuelle bruger er godkendt
Problem Du vil se, om en bruger er logget ind. Du ved, at Laravel automatisk holder den godkendte bruger i sessionen. Du vil kontrollere, om den aktue...
Assigning a Variable in a Blade Template
Problem You want to assign a variable in a Blade template. Solution Blade does not provide a command to do this. The idea is to cleanly separate logic...
Determining if a Translation Exists
Problem You want to determine if a translation exists for a particular key. Solution Use the Lang::has() method. To check if a translation exists for ...
Setting up the Memcached Cache Driver
Problem You want to speed up Laravel's cache. You know by default Laravel uses the file cache driver. You want to use a speedier cache. Solution Use t...
Whoops, looks like something went wrong
Problem I installed Laravel 5.0 properly by cloning in git, and composer install, when I ran it to browser http://localhost/laravel/public/, it says W...
Creating an Apache VirtualHost
Problem The default Apache web page shows for your project. You have Apache installed and have created a Laravel project, but the web page returned by...