Laravel/Lumen – missing commands in Artisan console

I have a problem with runing Laravel’s Artisan. There are most of the commands missing. Everything worked fine till the last composer/code update. For an example if…

What’s the proper way to use IF condition in Laravel Blade file?

Table Header: @if($products->subcategory->name == ‘Image’) <th>Demo</th>@[email protected] Table Column under forelse loop: @forelse ($products as $item) <tr> @if($item->subcategory->name == ‘Image’) <td> <p></p> </td> @else @endif </tr>@endforelse The problem…

multiple authentication login error

i am doing multi authentication my front end has a login form with cardno and password. in auth.php return [ ‘multi’ => [ ‘users’ => [ ‘driver’…

Store encrypted texts in the database , query and decrypt it back base on password

I’m trying to store an encrypted text in my database, but I have no idea how to decrypted it back. I’ve tried $salt = ‘c0d4#’;$pepper =’nsa-cia-fbi’; //…

Can Laravel hasOne be used with belongsToMany?

Let’s say I have two tables: Users: id, name, country_id Countries: id, name Of course each user can only have one country, but each country is assigned…

why i am getting this error webpack compiled with 1 error?

I am trying to installing my project but when i run this command npm run production it raises this error. I am not sure that what mistake…

Can I create a new class that inherits from User in Laravel 5.2?

I am pretty new to laravel (using 5.2 which is the latest version to date), therefore I have the following dilemma: I know that Laravel comes with…

Upload to External SFTP Using Details from Laravel Database

I know you can configure disks manually in Laravel, but I was curious if there was a way I could go about uploading directly to an external…

How to deploy laravel application on aws using ftp

I want to host my laravel application on AWS, i have my application on bitbucket i want to clone my application on aws i have Host :…

Laravel Eloquent model duplicate keys in model

I cannot figure out what is the problem, I cannot remember when it firstly appeared, it doesn’t make a lot of problems now, but it wastes connection…