run a laravel artisan command from code code example Example: how to run laravel project using command prompt php artisan serve