Tag : Laravel 5.3

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

Laravel 5.3 - Call to undefined method Illuminate\Database\Query\Builder::lists() Solved

Today i want to tell you about error "Call to undefined method Illuminate\Database\Query\Builder::lists()" and how to solve this error in Laravel 5.3. When i was working on my Laravel 5.3 application, at that time i require to get lists of email and id of users table for select drop-down. But when i use lists() with DB table i found error "Call to undefined method Illuminate\Database\Query\Builder::lists()". Error was like bellow preview: <pre> BadMethodCallException in Builder.php line 2440: Call to undefined method <br/> Illuminate\Database\Query\Builder::lists() </pre> I did search a lo.....

By Hardik Savani | September 24, 2016 | | 21087 Viewer | Category : Laravel

Laravel 5.3 - image dimension validation rules example

Laravel 5 provide new image dimensions validation option for image upload. In this validation rules we can set several rules like as listed bellow: <strong class="step">Dimensions Rules:</strong> <strong>1)width</strong> <strong>2)height</strong> <strong>3)min_width</strong> <strong>4)min_height</strong> <strong>5)max_width</strong> <strong>6)max_height</strong> <strong>7)ratio</strong> In this Dimensions option through we can set fix width and height, if invalid width and height of image then it will return error. Same way we can set validation min and max height width on your validation. F.....

By Hardik Savani | September 24, 2016 | | 27948 Viewer | Category : Laravel

Response download with file in Laravel 5.3 example

We sometimes require to return response with download file from controller method like generate invoice and give to download or etc. Laravel 5 provide us response() with download method that way we can do it. In First argument of download() we have to give path of download file. We can rename of download file by passing second argument of download(). We can also set headers of file by passing third argument. In bellow example will help you how it is works. So, first i am going to create new route for our example as like bellow: <strong>routes/web.php</strong> <pre class="prettyprint lang-ph.....

By Hardik Savani | September 21, 2016 | | 57579 Viewer | Category : Laravel

Laravel 5.3 - import export csv and excel file into database

Laravel 5.3 release few days ago and they upgrade several feature on Laravel 5.3. They also some changes on directory structure and etc. So, Today I am going to give you one example how to import and export xls, xlsx and csv files. I also added post for Laravel 5, but this example will help you to implement on your Laravel 5.3 application. In this example through you can import excel or csv to store in database and export or download excel or csv file from database table. For this example i use maatwebsite package from scratch. Maatwebsite package though we can easily working with csv and .....

By Hardik Savani | September 18, 2016 | | 197811 Viewer | Category : Laravel

How to check current password using hash check in Laravel 5.3?

Sometimes we are working on change password function at that time we require to check with current password. If current password should be match otherwise return error with "your old password is wrong". I mean we have one form with three input field like as bellow: <strong>1)current password</strong> <strong>2)new password</strong> <strong>3)confirm new password</strong> When it will submit form we have to check current password match with store database table password. So, laravel store hash password, that way we can't check directly equal to condition, But Laravel provide <strong>Hash</str.....

By Hardik Savani | September 18, 2016 | | 25615 Viewer | Category : Laravel

Laravel 5 - How to get difference of time in minutes?

Sometimes we require to calculate minutes difference between two dates in Laravel Application. But Laravel provide Carbon class. Help of Carbon class we can simply calculate minutes difference between two dates. you can simply customize code also. In Following example you can see, we have a two dates, first $to variable and second one $from variable. Carbon class diffInDays function using you can get difference between two dates. So, let's see bellow example, it is pretty simple: <strong>Example:</strong> <pre class="prettyprint lang-php"> $to = \Carbon\Carbon::createFromFormat('Y-m-d H:s:i.....

By Hardik Savani | September 14, 2016 | | 22007 Viewer | Category : Laravel

Laravel 5.3 - whereDate(), whereMonth(), whereDay() and whereYear() examples.

Laravel is a very popular PHP framework. Laravel 5.3 release few days ago and there are several new feature added by Laravel. Laravel 5.3 introduce several new where conditions like whereDate(), whereMonth() etc in Query Builder. Today, i am going to show you how to use it in your Laravel Application. I give you one example table and understand how works this four query builder functions one by one. So, first you can see bellow table with some records. <strong>products table</strong> <img src="/upload/product-table.png" style="width:100%;border:1px solid red"> <strong>whereDate()</strong> .....

By Hardik Savani | September 6, 2016 | | 55522 Viewer | Category : Laravel

Laravel 5.3 Image Upload with Validation example

Laravel is very popular PHP framework today and Laravel 5.3 released few days ago. There are several changes and enhancement on Laravel 5.3 version. So, Today i want to share with you how to image uploading in Laravel 5.3 with validation. If you are beginners then you can do that simply by following few step. Laravel 5.3 provide very simple way to create file uploading with proper validation like max file size 2MB, valid file extension like jpeg,png,jpg,gif or svg etc. So you can easily also implement this on your laravel 5.3 application. I give you very easy and simple example that way you.....

By Hardik Savani | September 2, 2016 | | 228344 Viewer | Category : PHP Laravel

How to send mail using mailable in laravel 5.3?

Laravel 5.3 released few days ago, that update several part from laravel 5.2, Laravel 5.3 also change mail sending function. Laravel 5.3 introduce mailable class for mail sending like Laravel 5.3 event and mailable class provide several method like view(), from(), text() etc. Mail send example is pretty interesting then laravel other version and also very simple with fully customize. Today, i am going to tell you how to send simple email with gmail smtp configuration using laravel 5.3 mailable class. It is very simple and best way. you have to just follow few step and you will get simple mail.....

By Hardik Savani | August 31, 2016 | | 46872 Viewer | Category : PHP Laravel

Laravel 5 - GEO chart example and demo using lavacharts package

Today, i going to give you example of how to add geochart in your laravel 5 application using lavacharts package. Normally we used geochart on back-end for check users country wise with graphical way. In this post we will implement geo chart with country and it's total users. lavacharts advantage is you can manage all data with chart matadata from controller, you just render on view. lavacharts provide several other charts like bar chart, Area chart, Column Chart, Pie Chart, Line Chart etc. In this post we will use geo chart with good graphical way. you can use in your laravel application, y.....

By Hardik Savani | July 19, 2016 | | 34078 Viewer | Category : Laravel