- version 3.6
Check those constraints:
$this->anything()
| // Use Gists to store code you would like to remember later on | |
| console.log(window); // log the "window" object to the console |
| // Routes.php | |
| Route::get('upload', function() | |
| { | |
| return View::make('upload-form'); | |
| }); | |
| Route::post('upload', function() | |
| { | |
| // Get and move uploaded file. |
| $("#selectBox").append('<option value="option6">option6</option>'); |
This gist assumes:
| <?php | |
| // Laravel has some date functions in the query builder that I never really | |
| // see mentioned. Most of the time when a user needs to do a MONTH(col) select, | |
| // they are advised to do something like this: | |
| $employees = Employee::where(DB::Raw('MONTH(hired_at)'), '=', 4)->get(); | |
| // However, Laravel seems to have query builder functions that take care of this. | |
| // The above query could be rewritten as: | |
| $employees = Employee::whereMonth('hired_at', '=', 4)->get(); |
| <?php | |
| /** | |
| * A helper file for Laravel 5, to provide autocomplete information to your IDE | |
| * Generated for Laravel 5.1.1 (LTS) on 2015-06-11. | |
| * | |
| * @author Barry vd. Heuvel <barryvdh@gmail.com> | |
| * @see https://github.com/barryvdh/laravel-ide-helper | |
| */ | |
| namespace { |
| <VirtualHost *:80> | |
| # The ServerName directive sets the request scheme, hostname and port t$ | |
| # the server uses to identify itself. This is used when creating | |
| # redirection URLs. In the context of virtual hosts, the ServerName | |
| # specifies what hostname must appear in the request's Host: header to | |
| # match this virtual host. For the default virtual host (this file) this | |
| # value is not decisive as it is used as a last resort host regardless. | |
| # However, you must set it for any further virtual host explicitly. | |
| ServerName erepo.usiu.ac.ke | |
| # ---------------------------------------------------------------------- | |
| # ROOT/ folder .htaccess | |
| # ---------------------------------------------------------------------- | |
| # Laravel Note: | |
| # Note: Laravel is designed to protect your application code, | |
| # and local storage by placing only files that are necessarily | |
| # public in the public folder. It is recommended that you either | |
| # set the public folder as your site's documentRoot (also known as a web root) | |
| # or to place the contents of public into your site's root directory | |
| # and place all of Laravel's other files outside the web root. |