The following config will discuss a basic example on how to execute shell script during a boot time on systemd Linux. There maybe various reason why you might want to execute shell script during Linux startup like for example to start a particular custom service, check disk space, create a backup etc. The following example below will serve as a ...
Read More »Laravel Syntax error or access violation: 1071
Trying to migrate in Laravel. When run “$ php artisan migrate” get this error : [Illuminate\Database\QueryException] SQLSTATE[42000]: Syntax error or access violation: 1071 Specified key was too long; max key length is 767 bytes or Doctrine\DBAL\Driver\PDOException::("SQLSTATE[42000]: Syntax error or access violation: 1071 Specified key was too long; max key length is 767 bytes or PDOException::("SQLSTATE[42000]: Syntax error or access violation: ...
Read More »Installation and Running Lumen – Laravel
To the point Installation and Running Lumen – Laravel Lumen is micro-framework by Laravel Installation 1. Server Requirements PHP >= 5.5.9 OpenSSL PHP Extension PDO PHP Extension Mbstring PHP Extension 2. Installing Lumen Installing Lumen with Composer to manage its dependencies. Make sure you have Composer installed on your machine. Via Lumen installer Download Lumen installer via composer $ composer global require "laravel/lumen-installer" And ...
Read More »Make your own Helper Functions – Laravel
How Make your own Helper Functions.? Well, we just see how and what should be made. The structure of the folders that I use to create a “Helper Functions”. Next we create a file “Helpers.php” and saved in the folder “app/Helpers“. In this Helpers.php file we put the functions that later we will call / use in our every need. ...
Read More »Cara partials views header, content, footer blade laravel
Cara partials view header, content, footer blade laravel gimana sih.? Masih bingung dengan blade nya laravel.? sama 😆 , mari kita belajar bersama. Ok point aja Cara partials view header, content, footer blade laravel. Pertama perhatikan struktur folder laravel bagian view nya terlebih dahulu, default phat view laravel ada di resource. Kisarnya sperti itu struktur foldernya. Dengan tmbahan beberapa folder. Di ...
Read More »Form dan HTML Laravel
Installation Opening A Form CSRF Protection Form Model Binding Labels Text, Text Area, Password & Hidden Fields Checkboxes and Radio Buttons File Input Number Input Date Input Drop-Down Lists Buttons Custom Macros Generating URLs Installation Begin by installing this package through Composer. Edit your project’s composer.json file to require laravelcollective/html. "require": { "laravelcollective/html": "~5.0" } Next, update Composer from the ...
Read More »