Laravel 5.X. make:mail not working - laravel

I am trying to create a mailable object using the steps described in a tutorial, iWhenI used the command
php artian make:mail
It is saying make:mail is not defined. Please tell me what am i doing wrong here?

According to the documentation, the make:mail command is available only in Laravel 5.3 and higher.

Related

Can someone explain this error when trying to create a custom tool?

I am trying to create a new tool following the steps in the nova documentation.
I try php artisan nova:tool Tree and i get the error An option named "no-interaction" already exists.
Google doesnt find anything. What might be the problem?
It's a bug in Laravel Nova 3.7

How to create a observer in laravel using command

I need to create an observer using the laravel artisan command. I tried many ways but can't find the right way.
I think you have been are using laravel 5.5, the artisan comman is available only from Laravel 5.6
Please upgrade your framework in composer.json and change laravel 5.5 to Laravel 5.6. and then you can run php artisan make:observer Test

Customizing the paginator view in Laravel 5.2

I've been reading the docs and set up a basic app.
Every issue I've had before I've been able to solve by looking in the docs and occasionally using Google, however I can't figure this one out.
I'm using Laravel version 5.2.43 and the Paginator works fine.
I use it in my view like this,
$data->links()
But now I would like to customize the look of the paginator.
So I tried running this command
php artisan vendor:publish --tag=laravel-pagination
In the hopes of simply being able to customize that view instead of creating a new one all over but that command didn't work, it just said
Nothing to publish for tag [laravel-pagination]
So, instead I did this.
{{ $data->links('folder.viewName') }}
But this command gives me this error,
Argument 1 passed to Illuminate\Pagination\LengthAwarePaginator::links() must be an instance of Illuminate\Contracts\Pagination\Presenter, string given
So I'm not sure what's going on. The pagination works but I can't set the view myself.
Any thoughts on what's going on here?
Any help would be greatly appreciated.
I believe you can't do this in Laravel 5.2 without "hacking" the framework. Fortunately, Laravel 5.3 is released this week and it features custom pagination views
Custom pagination in Laravel 5.3
So it turns out I've been reading the 5.3 documentation for Laravel all this time. Which explains a lot of things...
So when 5.3 comes out we can do
$paginator->links("myOwnView")
Until then, I've done it the manual way of using the instances inside the paginator object.

laravel artisan commands are not working in dos. it's giving me the errors

I am new to laravel im am trying to make controller but getting the error.
could not open input file: artisan.
I just install the laravel with the controller.
Please help.
Make sure you are in the laravel folder.

How to make multi account in laravel 5.2

I'm confused to make user "student","teacher",and "admin" in laravel 5.2. I don't know steps after I type php artisan make:auth. Please tell me to use it untill route.php
What you need is laravel's authorization:
Have a look at the documentation
Or if you need extended functionality, have a look at Cartalyst's Sentinel. Which integrates very nicely with laravel

Resources