artisan

Using Laravel Artisan and file permissions

眉间皱痕 提交于 2020-08-10 19:37:23
问题 I'm new to Laravel and I find this framework awesome. Artisan is also great but a have a little problem using it. Let's say that I create a new Controller with Artisan like this php artisan make:controller Test There will be a new file in app/Http/Controllers named Test and the permission on this file will be root:root When I want to edit this file with my editor over ftp I can't because I'm not logged as root. Is there any ways to tell Artisan to create files with www-data group for example

Laravel: SQLSTATE[HY000] [2054] The server requested authentication method unknown to the client

我怕爱的太早我们不能终老 提交于 2020-08-08 05:55:26
问题 after installing a new laravel app 5.7 and trying to migrate I get this error: Illuminate\Database\QueryException : SQLSTATE[HY000] [2054] The server requested authentication method unknown to the client (SQL: select * from information_schema.tables where table_schema = xxx_db and table_name = migrations) at C:\xampp\htdocs\xxxxx\vendor\laravel\framework\src\Illuminate\Database\Connection.php:664 660| // If an exception occurs when attempting to run a query, we'll format the error 661| //

Is it okay to run php artisan :clear commands on a production laravel website? [closed]

半世苍凉 提交于 2020-07-21 03:14:30
问题 Closed . This question is opinion-based. It is not currently accepting answers. Want to improve this question? Update the question so it can be answered with facts and citations by editing this post. Closed 2 months ago . Improve this question I have a production Laravel website hosted on a DigitalOcean NGINX server, and every time I git push new updates, I always run the following commands: php artisan config:clear php artisan cache:clear php artisan route:clear php artisan view:clear

Is it okay to run php artisan :clear commands on a production laravel website? [closed]

独自空忆成欢 提交于 2020-07-21 03:13:51
问题 Closed . This question is opinion-based. It is not currently accepting answers. Want to improve this question? Update the question so it can be answered with facts and citations by editing this post. Closed 2 months ago . Improve this question I have a production Laravel website hosted on a DigitalOcean NGINX server, and every time I git push new updates, I always run the following commands: php artisan config:clear php artisan cache:clear php artisan route:clear php artisan view:clear

Laravel 6.0 php artisan route:list returns “Target class [App\Http\Controllers\SessionsController] does not exist.”

与世无争的帅哥 提交于 2020-07-18 05:16:46
问题 I am using Laravel 6.0 and I try to list all my routes with artisan route:list , but it fails and returns: Illuminate\Contracts\Container\BindingResolutionException : Target class [App\Http\Controllers\SessionsController] does not exist. at /home/vagrant/code/vendor/laravel/framework/src/Illuminate/Container/Container.php:806 802| 803| try { 804| $reflector = new ReflectionClass($concrete); 805| } catch (ReflectionException $e) { 806| throw new BindingResolutionException("Target class [

Laravel 5: DB Seed class not found

|▌冷眼眸甩不掉的悲伤 提交于 2020-05-24 21:05:30
问题 I have this DatabaseSeeder.php: <?php use Illuminate\Database\Seeder; use Illuminate\Database\Eloquent\Model; class DatabaseSeeder extends Seeder { /** * Run the database seeds. * * @return void */ public function run() { Model::unguard(); $this->call('MemberInvitationSeeder'); } } I have this file MemberInvitationSeeder.php, sibling to the DatabaseSeeder.php file <?php use Illuminate\Database\Seeder; use App\MemberInvitation; class MemberInvitationSeeder extends Seeder { public function run(