PHP code example of kentomoriwaki / laravel-on-heroku

1. Go to this page and download the library: Download kentomoriwaki/laravel-on-heroku library. Choose the download type require.

2. Extract the ZIP file and open the index.php.

3. Add this code to the index.php.
    
        
<?php
require_once('vendor/autoload.php');

/* Start to develop here. Best regards https://php-download.com/ */

    

kentomoriwaki / laravel-on-heroku example snippets


composer install
npm install
php artisan migrate --seed

heroku create --buildpack https://github.com/CHH/heroku-buildpack-php yourapp
heroku addons:add  heroku-postgresql
heroku pg:promote HEROKU_POSTGRESQL_RED_URL