- Clone this repository with
git clone https://github.com/furkancamyar/laravel-url-short.git
While doing these steps, make sure to run the commands in the
~\laravel-url-short
directory.
- Run
composer install
to install the PHP dependencies - Run
composer require ashallendesign/short-url
- Run
php artisan vendor:publish --provider="AshAllenDesign\ShortURL\Providers\ShortURLProvider"
- Run
npm install
- Set up a local database called
laravel-url-short
- Run
cp .env.example .env
Update .env to your specific needs. Don't forget to set
DB_DATABASE
andAPP_URL
with the settings used behind.APP_URL = http://laravel-url-short.<..>
andDB_DATABASE = laravel-url-short
- Run
php artisan migrate
- Run
npm run dev
Copy
APP_URL: http://laravel-url-short.<..>