🐦 Twitter like application made with Laravel & Vuejs
# Go to directory
cd twouiter
# Install composer dependencies
composer install
# Install node dependencies
npm install
# Duplicate .env.example as .env
# Run migrations
php artisan migrate
# Run on localhost:8000
php artisan serve
- Create 10 users
php artisan db:seed --class=UsersTableSeeder
- Create 10 users with 3 posts for each one
php artisan db:seed --class=PostsTableSeeder
- Create 2 users with one following the other
php artisan db:seed --class=FollowerTableSeeder
- Execute all three seeders at one
php artisan db:seed
# Web
Route::get('/', 'PostController@index')->name('home');
# Url
http://localhost:8000/
# Web
Route::get('user/{username}', 'UserController@index')->name('user');
# Url
http://localhost:8000/user/{username}
# Web
Route::get('user/{username}/profile', 'ProfileController@index')->name('user.profile');
# Url
http://localhost:8000/user/{username}/profile