For detail look here
sudo apt-get install nginx
then get IP address and try it on browser
For detail look here
sudo apt-get install nginx
then get IP address and try it on browser
| set guifont=Fira_Code:h15 " font for mac vim | |
| set linespace=14 " line spacing for macvim | |
| set macligatures " Fira code symbols enables | |
| set guioptions-=e " Disable GUI tabs | |
| " remove any scrollbar | |
| set guioptions-=L | |
| set guioptions-=l | |
| set guioptions-=R | |
| set guioptions-=r |
| <?php | |
| namespace App\Providers; | |
| use Illuminate\Routing\Router; | |
| use Illuminate\Foundation\Support\Providers\RouteServiceProvider as ServiceProvider; | |
| class RouteServiceProvider extends ServiceProvider | |
| { | |
| protected $webNamespace = 'App\Http\Controllers\Web'; |
| <?php | |
| Route::get('/', function() { | |
| return 'Hello World'; | |
| }); | |
| Route::get('/login', 'AuthController@loginForm'); | |
| Route::post('/login', 'AuthController@postLogin'); | |
| Route::delete('/logout', 'AuthController@logout'); |
Add these two lines to your .bashrc or .zshrc file.
alias show-files="defaults write com.apple.finder AppleShowAllFiles YES; killall Finder /System/Library/CoreServices/Finder.app"
alias hide-files="defaults write com.apple.finder AppleShowAllFiles NO; killall Finder /System/Library/CoreServices/Finder.app"
Laravel's document root is public folder. But you often needs to put your assets like images on other folders than public.
Here is an example using intervestion/image package on laravel.
Route::get('images/{name}', function($name){
if(! file_exists(storage_path("/app/$name"))){
return App::abort(404);
}
// Get the image
| /* | |
| Exemples : | |
| <a href="posts/2" data-method="delete" data-token="{{csrf_token()}}"> | |
| - Or, request confirmation in the process - | |
| <a href="posts/2" data-method="delete" data-token="{{csrf_token()}}" data-confirm="Are you sure?"> | |
| */ | |
| (function() { | |
| echo 'export PATH=$HOME/local/bin:$PATH' >> ~/.bashrc | |
| . ~/.bashrc | |
| mkdir ~/local | |
| mkdir ~/node-latest-install | |
| cd ~/node-latest-install | |
| curl http://nodejs.org/dist/node-latest.tar.gz | tar xz --strip-components=1 | |
| ./configure --prefix=~/local | |
| make install # ok, fine, this step probably takes more than 30 seconds... | |
| curl https://www.npmjs.org/install.sh | sh |