Category : PHP



Laravel 5.5 Simple CMS Website example using asgardcms

Today i am going to share with you how to use cms in laravel 5.5 application. As we know wordpress is best cms in the world and almost people like to use cms for his company website or blog. But if we think about codding style, security or structure then laravel framework is a best. So There are several provide laravel cms to make quick back end admin panel and also work like wordpress blog. So, in this post i would like to introduce same simple cms using laravel, that know as "asgard cms". asgard cms provide very simple modules function and you can simply quick create modules like on wordpre.....

By Hardik Savani | October 15, 2017 | | 1752 Viewer | Category : PHP
READ MORE

How to upload and resize image in PHP ?

After a long time i am going to share something with you friends. But Anyway Today i will show you how to generate thumbnail image in PHP. Here i will make very simple code to upload image and resize that image too. As we know well images are very important to display on our website. As specially when if you require small size of image and you are displaying big image then it can be take more time to load. So your photos should be resize able or need to generate thumbnail when user upload those images. So here i will explain how to create thumbnail image in your code php project. Here, i us.....

By Hardik Savani | October 10, 2017 | | 802 Viewer | Category : PHP
READ MORE

Full Text Search in Laravel 5 Example

Are you want to make full text search in your laravel 5.5 application ?, If Yes then you are a right place. In this post i am going to share with you how to create full text search using "nicolaslopezj/searchable" composer package in laravel 5. In real field we almost require to create full text search like if you have users table and there are several columns like id, first name, last name, email, address, city etc. So if you search just "a" then if should filter with all the columns. So it's like just run simple query with search, it should work like datatables search. So don't worry about .....

By Hardik Savani | October 4, 2017 | | 3280 Viewer | Category : PHP
READ MORE

How to generate UUID in Laravel 5 ?

Today i am going to share with you how to create uuid in laravel 5 application. You can create quick uuid using generator. I will use composer package for generate unique uuid. UUID stand for universally unique identifier and is a 128-bit number used to identify information in computer pc. In this post i will show you how to generate uuid in laravel 5 application. In this post we will use webpatser/laravel-uuid composer package for generate uuid in laravel 5. We have to simple install webpatser/laravel-uuid package to your laravel application and then a second you can generate uuid. So, you.....

By Hardik Savani | September 28, 2017 | | 1447 Viewer | Category : PHP
READ MORE

PHP - How to create zip file and download using ZipArchive ?

Today, i am going to share with you how to create zip file using ZipArchive then give for download. So here i will give you very simple example to do this. We may require to create zip archive file using php code. We need to add some photos, docs etc on that zip file then give download. So here i am going to make very simple function createZip() that will help to create zip archive file. Using this function you have to simple pass array of file, docs, picture with path. So here i make very simple index.php file and you have to just copy that and run it. Make sure you have two image file sho.....

By Hardik Savani | September 24, 2017 | | 1248 Viewer | Category : PHP
READ MORE

Laravel 5.5 group by doesn't work - fixed

Someday ago i just installed laravel 5.5 application and i was checking new feature and making some examples. But i was working on database query builder example one by one, i got following error when i used group by on single column. My query was like as bellow example, so you can see on database query i simple get all users and group by with name. So, let's simply see how it is: <strong>DB Query:</strong> <pre> $users = DB::table("users") ->groupBy("name") ->get(); dd($users); </pre> But when i run above query using database query builder i got following error, as.....

By Hardik Savani | September 22, 2017 | | 1113 Viewer | Category : PHP
READ MORE

Laravel 5.5 Create Custom Middleware example

Middleware are used for filter HTTP requests in your web application. One of the basic requirement of any web application is HTTP requests filter, so we have to make is well for example make auth middleware. auth middleware always check if you are going then and then you can access those page. In laravel 5.5 application they are provide several default web middleware but in this tutorial we are going to create custom middleware for laravel 5.5 application. In this example, i am going to create "checkType" middleware and i will use simply on route, when they route will run you must have to pas.....

By Hardik Savani | September 17, 2017 | | 4187 Viewer | Category : PHP
READ MORE

Laravel 5.5 custom validation rules example

As we know very well about, few days ago laravel 5.5 released and they introduce several feature. They also change method of create custom validation rules. So in this post i explain you how to create custom validation rules in laravel 5.5 application. Validation is a primary requirement of every project, without validation we can not release successful application or website. Because if you haven't implemented validation then you get wrong information from use input. Laravel provide there are several default validation rules like required, max, min, array, unique, digits, in, boolean, befor.....

By Hardik Savani | September 10, 2017 | | 8637 Viewer | Category : PHP
READ MORE

Please provide a valid cache path. laravel error fixed

Few days ago i clone my old project and then install composer. Then also i created .env file and make virtual host of my laravel 5.4 application. But i got following error. <strong>please provide a valid cache path.</strong> I again make composer update and also give permission to storage folder but nothing result. So i feel sad because i haven't seen this error before. I try to solve my way but can't do it. At last i found solution from google, I don't know but i make gitignore <strong class="path"> storage/framework</strong> so, what you have to do if you found this error. You have to cre.....

By Hardik Savani | September 7, 2017 | | 748 Viewer | Category : PHP
READ MORE

Laravel 5.5 CRUD Example from scratch

In this tutorial i will shows how you can create basic crud(create, read, update and delete) module in laravel 5.5 application. Laravel is a popular open-source PHP MVC Framework with lots of advanced development features. Laravel released it's new version 5.5 as few days ago. If you are learner or beginner of crud example in laravel 5.5 application then you are a right place. It's always help to more understand or learn from crud application for beginner developer. Here, i will create insert, update, delete and view with pagination example of articles. You can simply create new article, vi.....

By Hardik Savani | September 3, 2017 | | 90357 Viewer | Category : PHP
READ MORE

    Laravel 5 dropbox api file upload example using league/flysystem-dropbox package

    Laravel 5 dropbox api file upload example using league/flysystem-dropbox package

    Open Post

    How to create blade view file using command line in Laravel?

    How to create blade view file using command line in Laravel?

    Open Post

    PHP MySQL confirmation box before delete record using jquery ajax

    PHP MySQL confirmation box before delete record using jquery ajax

    Open Post

    PHP AngularJS CRUD with Search and Pagination Example From Scratch

    PHP AngularJS CRUD with Search and Pagination Example From Scratch

    Open Post

    Laravel 5 - Implementing datatables tutorial using yajra package

    Laravel 5 - Implementing datatables tutorial using yajra package

    Open Post

    Laravel - How to make subquery in select statement?

    Laravel - How to make subquery in select statement?

    Open Post