| 12345678910111213141516171819202122232425262728 | 
							- <?php
 
- use Illuminate\Support\Facades\Route;
 
- /*
 
- |--------------------------------------------------------------------------
 
- | Web Routes
 
- |--------------------------------------------------------------------------
 
- |
 
- | Here is where you can register web routes for your application. These
 
- | routes are loaded by the RouteServiceProvider within a group which
 
- | contains the "web" middleware group. Now create something great!
 
- |
 
- */
 
- Auth::routes();
 
- Route::post('follow/{user}', [App\Http\Controllers\FollowsController::class, 'store']);
 
- Route::get('/', [App\Http\Controllers\PostsController::class, 'index']);
 
- Route::get('/p/create', [App\Http\Controllers\PostsController::class, 'create']);
 
- Route::post('/p', [App\Http\Controllers\PostsController::class, 'store']);
 
- Route::get('/p/{post}', [App\Http\Controllers\PostsController::class, 'show']);
 
- Route::get('/profile/{user}', [App\Http\Controllers\ProfilesController::class, 'index'])->name('profile.show');
 
- Route::get('/profile/{user}/edit', [App\Http\Controllers\ProfilesController::class, 'edit'])->name('profile.edit');
 
- Route::patch('/profile/{user}', [App\Http\Controllers\ProfilesController::class, 'update'])->name('profile.update');
 
 
  |