Category : Laravel

ItSolutionStuff.com have tutorials for Laravel, here you can study articles of Laravel, Laravel posts collection, most popular and useful tutorials of Laravel, here you can find list of all relevant posts and example about Laravel, we have lists of tutorials and examples about Laravel.very simple and quick example collection of Latest Laravel category.



Laravel 5 - Image Upload and Resize Example using Intervention Image Package

In this post i will show you how to resize image in laravel application. Generally if we are work on big project like ecommerce etc then we need to generate thumbnail image for product or user image etc. So in laravel you can do easily using intervention/image package. You can also manage resize image with maintain ratio of image. In this example if you beginner then also easily understand and reuse this example in your application, you have to just follow bellow few step. In this example i give you image upload form and after submit image will upload and then display image preview as you can .....

By Hardik Savani | April 26, 2016 | | 235737 Viewer | Category : Laravel
READ MORE

Fixed - MassAssignmentException in model.php laravel 5?

massassignmentexception is for the security purpose if laravel 5 function. When i did start Laravel 5 and first i did try to add user using "User::create(['name'=>'hd','password'=>'1w'])" then i found bellow error. I was thinking what was wrong, but after investigation i found it for our security purpose, because you have to add field name that you want to insert that way other Http script or hacker etc can't insert something elelse you need to add $fillable variable in your Model. So, let's see user model example. <strong>User.php</strong> <pre class="prettyprint lang-php"> namespace App; <br.....

By Hardik Savani | April 25, 2016 | | 7264 Viewer | Category : Laravel
READ MORE

How to send mail example in Laravel 5?

Laravel 5 provide several way to send email. You can also use core PHP method for send mail and you can also use some email service providers such as sendmail, smtp, mandrill, mailgun, mail, gmail etc. So you can choese any one and set configration. Laravel 5 provide Mail facade for mail send that have sevaral method for send email.In this example i going to show you how to send emails from gmail account example. This example is very simple you can use as requirement easily. It is very simple to configration with gmail account so first open your .env file and add bellow gmail configration. <st.....

By Hardik Savani | April 25, 2016 | | 67904 Viewer | Category : Laravel
READ MORE

How to quick run laravel project?

If you want to run laravel project without virtual host then you can run quickly using laravel artisan command. if you are beginner and you are confuse how to run laravel application then it is very simple to run so just run bellow command in your terminal: <strong>Run Project</strong> <pre>php artisan serve</pre> After this command you can copy this link and check on your browser: <pre>http://localhost:8000/</pre>

By Hardik Savani | April 24, 2016 | | 7089 Viewer | Category : Laravel
READ MORE

How to create and use Middleware in Laravel 5?

Laravel is the best framework in PHP todays. Laravel framework provide saveral functionality and you can also find from this site. But now in this post you can learn how to create custom middleware as filter in laravel 5 example and how to use middleware in laravel 5. In this example you can learn how to add middlware from scratch in your laravel application. In this example i added middleware for check if user is admin then it can open someroute like ACL. So i added <strong class="path">id_admin</strong> column in my users table if use have is_admin = 1 then it can access "admins" route. So .....

By Hardik Savani | April 24, 2016 | | 53498 Viewer | Category : Laravel
READ MORE

Mailgun setup with Laravel 5 example

Mailgun is very popular API to send email from website. It is very fast to send mail and also it track the mail. Tracking email is very important feature of mailgun api and you can also see how much user open your mail, click on your mail too. Mailgun send mail like work gun. In this post i would like to show you how to setting of mailgun in our laravel 5 application. In this example you can learn to send simple mail using mailgun api. If you are use mailgun for sending email then you can save loading time and you can get mail fast. <img width="100%" style="border:2px solid red" src="/upload/L.....

By Hardik Savani | April 23, 2016 | | 101410 Viewer | Category : Laravel
READ MORE

How to check if file exists or not in Laravel 5?

Nowdays laravel framework is popular framework in PHP Language. So, if you required to check if file is exists or not in given path then you can check eisily. Normally we always need to check if image exists, check if pdf file exists, check if docs exists or not etc. I give you two way to check file is Exists or not. one using file_exists() and second one using File facade of laravel 5. it's better if you preffer File facade example. So, let's see and implement: <strong>Example 1:</strong> <pre class="prettyprint lang-php"> if(file_exists(public_path('images/1461177230.jpg'))){ dd('File i.....

By Hardik Savani | April 23, 2016 | | 24520 Viewer | Category : Laravel
READ MORE

How to add charts in Laravel 5 using Chart JS ?

Laravel 5's Blade template engine is awesome. you can easyly use PHP variable, js and js library in laravel view. i will create chart using Chart.js in laravel application. Chartjs is a js library, this library through we can use bar chart, line chart, area chart, column chart etc, C]chart.js also provide sevral theme and graph that way you can use more chart from here : <a target="_blank" href="http://www.chartjs.org/docs/">Chartjs Docs</a>. whenever you need to add charts in laravel server side. then you can easily use following example you have to fetch data from database and then set in C.....

By Hardik Savani | April 22, 2016 | | 107601 Viewer | Category : Laravel
READ MORE

Laravel 5 Pagination example

In this tutorial you can learn how to add simple pagination in your blade file. If you are beginners then it can help you. Laravel 5 provide its own method for pagination. But if you are work on code PHP then you have to write long code for pagination and render view etc but in Laravel it is very simple so let's select data following way in Controller. <strong>Controller File:</strong> <pre class="prettyprint lang-php"> public function getUser() { $data = User::paginate(10); return view('users.index',compact('data')); } </pre> In above example you can see now it will return pagination with 1.....

By Hardik Savani | April 21, 2016 | | 35053 Viewer | Category : Laravel
READ MORE

Laravel 5 File(Image) Upload Example with Validation

In this tutorial i want to share with you how to create image uploading in Laravel 5. If you are beginners then you can do that simply. Laravel 5 provide very simple way to create file uploading with proper validation like max file size 2mb, file extention should be jpeg,png,jpg,gif or svg etc. So you can easily also implement this on your laravel application. I give you very easy and simple example that way you can undestand very well. So let's start from routes define. <strong class="step">1. Define Route</strong> First you have add two route in routes.php file. first one for generate view a.....

By Hardik Savani | April 21, 2016 | | 138509 Viewer | Category : Laravel
READ MORE

    Laravel 5 ajax request validation example

    Laravel 5 ajax request validation example

    Open Post

    How to integrate jQuery Fullcalendar using Bootstrap, PHP and MySQL ?

    How to integrate jQuery Fullcalendar using Bootstrap, PHP and MySQL ?

    Open Post

    Laravel 5.6 CRUD Application for Starter

    Laravel 5.6 CRUD Application for Starter

    Open Post

    Simple Add remove input fields dynamically using jquery with Bootstrap

    Simple Add remove input fields dynamically using jquery with Bootstrap

    Open Post

    Laravel 5.3 - How to create SEO friendly sluggable URL

    Laravel 5.3 - How to create SEO friendly sluggable URL

    Open Post

    Laravel 5 - Image Upload and Resize Example using Intervention Image Package

    Laravel 5 - Image Upload and Resize Example using Intervention Image Package

    Open Post