Apr 18, 2025
composer global require laravel/installer.laravel new FreeCodeGram.php artisan to see available commands.php artisan serve, php artisan make:auth for authentication.php artisan make:auth for user authentication setup.resources/views to manage view files.@extends, @yield).{{ }} for variable output and @auth, @guest for conditional content.composer require intervention/image.use Intervention\Image\Image.cache()->remember() to cache counts for followers, posts, etc..env file.Mail::to()->send(new WelcomeMail()) to send emails.php artisan make:policy ProfilePolicy.authorize() method.profile_user.belongsToMany in the User and Profile models.paginate() method in queries to limit results per page.{{ $posts->links() }} in Blade views.composer require laravel/telescope and run php artisan telescope:install.