A modern responsive front-end framework based on Material Design
First install Composer, then:
$ composer create-project laravel/laravel <project-name>
After that we can start a webserver, and test the default index page:
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Add correct content-type for fonts | |
AddType application/vnd.ms-fontobject .eot | |
AddType font/ttf .ttf | |
AddType font/otf .otf | |
AddType font/x-woff .woff | |
AddType image/svg+xml .svg | |
# Compress compressible fonts | |
AddOutputFilterByType DEFLATE font/ttf font/otf image/svg+xml |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<h1>Letter Avatars</h1> | |
<small><strong>Usage:</strong></small> | |
<pre> | |
<code><img width="60" height="60" avatar="Andy Dandy"></code> | |
</pre> | |
<div> | |
<img width="60" height="60" avatar="Andy Dandy"> | |
<img class="round" width="60" height="60" avatar="Andy Dandy"> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
namespace App\Providers; | |
use Illuminate\Support\ServiceProvider; | |
class GoogleDriveServiceProvider extends ServiceProvider | |
{ | |
/** | |
* Bootstrap the application services. |
Laravel Homestead is an official, pre-packaged Vagrant box that provides you a wonderful development environment without requiring you to install PHP, HHVM, a web server, and any other server software on your local machine. Read more...
Download homestead box using this link:
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This Gist provides an example of how to implement a Client Model Observer for Laravel Passport. | |
This Observer will allow you to intercept the creation of a `Laravel\Passport\Client` model and set a custom id for it. | |
However, to implement this, you will need to handle the migrations yourself. In my case, the custom ID will be a random, large integer. So the database migrations set the `id` field to a type of `bigInteger`. | |
Take a look at this complete Gist carefully and implement it yourself. It's very easy. |
OlderNewer