Top "Laravel-5.2" questions

Laravel 5 is the previous major version of the open-source PHP web development MVC framework created by Taylor Otwell.

Check if variable exist in laravel's blade directive

I'm trying to create blade directive which echo variable (if variable defined) or echo "no data" if variable undefined. This …

php laravel undefined laravel-5.2 directive
laravel 5.2 How to get route parameter in blade?

this is my url http://project.dev/blogs/image-with-article so, here I need the parameter image-with-article in my blade to …

php laravel laravel-5.2 blade laravel-blade
Manually register a user in Laravel

Is it possible to manually register a user (with artisan?) rather than via the auth registration page? I only need …

php laravel laravel-5 laravel-5.2
validating a numeric input's length in laravel 5

foo.blade.php <input type="text" name="national-id" /> FooController.php $rules = [ 'national-id' => 'required|size:10|numeric' ]; the national-id …

php laravel laravel-5 laravel-5.2 laravel-validation
Laravel 5.2: Unable to locate factory with name [default]

I want to seed database when I use this public function run() { $users = factory(app\User::class, 3)->create(); } …

php laravel laravel-5 laravel-5.2 laravel-seeding
git ignore .env files not working

I have a laravel project. In the root directory are these 4 files: .env .env.example .env.local .env.staging I …

git laravel laravel-5.2 gitlab
Undefined variable: errors in Laravel

When I want to register a user in my laravel project, the page always says Undefined variable: errors (View: /var/…

laravel laravel-5 laravel-validation laravel-middleware laravel-5.2
Can Anyone Explain Laravel 5.2 Multi Auth with Example

I am trying to authenticate users and admin form user table and admin table respectively. I am using the User …

laravel laravel-5 laravel-5.2 laravel-authorization
Connection could not be established with host mailtrap.io [php_network_getaddresses: getaddrinfo failed: No such host is known. #0]

I am getting below error: Connection could not be established with host smtp.gmail.com [php_network_getaddresses: getaddrinfo failed: …

php laravel-5.2 laravel-mail
Laravel 5: PHPUnit and no code coverage driver available

I would like to use PHPUnit to create code coverage reports. I have tried a lot of installation setups found …

phpunit code-coverage laravel-5.2