Answers for "laravel send $this as parameter"

PHP
1

how send parameter with command in laravel

1 ) protected $signature = 'testCommand:refresh {name} {option}';
2 ) php artisan help testCommand:refresh
3 ) Usage:
  testCommand:refresh <name> <option>
4 ) public function handle()
    {
        return $this->info('the name is => '.$this->argument('name'). " the option is =>" .$this->argument('option'));
    }
Posted by: Guest on July-15-2021
0

laravel translation parameter send

'string1' => 'Welcome :user, Please meet :other',
You can now use, for example:

trans('string1', [ 'user' => 'Ainsley', 'other' => 'Hayden' ]);
Posted by: Guest on July-16-2021

Code answers related to "laravel send $this as parameter"

Browse Popular Code Answers by Language