Posts

Showing posts from May, 2018

myshopwiz

myshopwiz

How to add ckeditor with image upload in Laravel ?

How to add ckeditor with image upload in Laravel ? if you want to use ckeditor in laravel and you also want to add file uploading as well. if you are use simply in php then it is very simple. but if you are set laravel then you fetch many problem like i also fetch lots of problem. Now, i will give you few step to set ckeditor with file uploading and you will easily apply this. this is a very simple to browse your image, file etc upload. use ckeditor in php, use ckeditor in laravel 4, use ckeditor in laravel 5, how to add ckeditor in laravel, laravel ckeditor image upload, laravel ckeditor example, laravel ckeditor sample, ckeditor laravel 4, ckeditor laravel 5, laravel rich text editor Step 1 : download ckeditor from its official website, i mean here : http://ckeditor.com/download Step 2 : next download kcfinder for image uploading. here : http://kcfinder.sunhater.com/download. Step 3 : then create new folder like : 'templateEditor' in your public directory and put both fol...

Laravel 5 import export to excel and csv using maatwebsite example.

Laravel 5 import export to excel and csv using maatwebsite example. In this post i will show you how to import excel or csv to store in database and how to export or download excel or csv file from database table by maatwebsite. maatwebsite packages throught you can easily get data, also you can group by data, also create more then one sheet etc. so now i show you simple example of items table data, you can donwload in xls, xlsx and csv formate and also you import data in xls, xlsx and csv formate file. In following few step you can implement import and export both function in your project. First see your browser preview will become like this: Preivew: Preivew Of Import File: Step 1: Installation Open your composer.json file and add bellow line in required package. Laravel 5 "maatwebsite/excel": "~2.1.0" Laravel 4 "maatwebsite/excel": "~1.3" Then, run command composer update Now open config/app.php file and add service provider and aliase. ...

How to add charts in Laravel 5 using Chart JS ?

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 : Chartjs Docs . 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 Chart JS function, In this post i will give you simple example to create bar chart using chart js that way you can use in your laravel application. Preivew: So, first add chartjs route in your routes.php file. app/Http/routes.php Route::get('chartjs', 'HomeController@chartjs'); Ok, now add bellow method like this way in Homecontroller : HomeController Method public function chartjs() { ...

Simple Add remove input fields dynamically using jquery with Bootstrap

Simple Add remove input fields dynamically using jquery with Bootstrap In this tutorial, I am going to show you how to add remove input fields dynamically in your form using jquery. In this simple example, i give you to add multiple input fields with remove button that way you can remove field if you don't require. In this example i use bootstrap also because layout become pretty good. In this example, Simply i added two click event of jquery as listed bellow: 1.add-more Class: On ".add-more" class that way we can write jquery append code. 2.remove Class: On ".remove" class that way we can remove input field. I also added "copy" class div, that will be append after "after-add-more" class that way you can also modify easily on "copy" class like you want to change text or icon etc. It is pretty simple example and you can easily customize this example. You have to create two file one for generate script code of add more input fields...

PHP - Capture screenshot of website from URL example

PHP - Capture screenshot of website from URL example Today, i am going to give you example of how to grab screen shot from given URL using PHP curl. There are several website provide API for capture website screenshot image using their API Secret and Key. In this example i am using screenshotmachine.com website API. This website provide very simple way to user their API. If you haven't account on screenshotmachine.com then you must create new account and get Account Key . So you have to just copy that key. I also use variable "$accountKey", you have to just assign that key on that variable. It is very simple example and using only simple file. Make sure you have images folder in your root path with full permission. All images will download and store on that table. URL http://test.hd/?url=http://google.com Index.php <!DOCTYPE html> <html> <head> <title>PHP - Capture screenshot of website from URL</title> </head> <body> <?php...

Laravel 5 - Dynamic Dependant Select Box using JQuery Ajax Example - Part 2

Laravel 5 - Dynamic Dependant Select Box using JQuery Ajax Example - Part 2 After complete our fist part of Laravel 5 - Dynamic Dependant Select Box using JQuery Ajax Example, Now we have to do main task for Dynamic select box value. In this part we follow two step for create Controller File and Laravel Blade File. In this part we write code for how to manage controller method and how to give response them. So let's follow this bellow remaining two step of change drop down options on change of parent dropdown. So let's follow: Step 5: Create Controller In this point, now we should create new controller as AjaxDemoController in this path app/Http/Controllers/AjaxDemoController.php . this controller will manage layout and ajax post request, So run bellow command for generate new controller: php artisan make:controller AjaxDemoController Ok, now put bellow content in controller file: app/Http/Controllers/AjaxDemoController.php <?php namespace AppHttpControllers; use Illuminate...

Laravel 5 - Dynamic Dependant Select Box using JQuery Ajax Example - Part 1

Laravel 5 - Dynamic Dependant Select Box using JQuery Ajax Example - Part 1 In this Tutorial, I am going to share with you how to make dynamic dependent dropdown box using Ajax like When i select category, then sub category select box value should be change. We can't do this stuff without ajax. So, in this Post i am going to give you full and very simple example of dynamic select box using change event of jquery. This article written in two parts, so it can be easy to understand and if you are beginner then also you can simply perform because this tutorial is from scratch. In this example i created two tables as listed bellow: 1)countries 2)states We perform, when we select country from country dropdown, at that moment state dropdown box value will be change like if i select "US" from country select box then in state select box value will be only "US" state. So, let's follow bellow few step to do it. Step 1 : Install Laravel Application we are going from sc...

Confirm Box Before Delete Item in Codeigniter

Confirm Box Before Delete Item in Codeigniter We always require to add conformation box before delete mysql rows in our codeigniter 3 application. now what i will do, when user will click on delete button or link i want to pop up messages or jquery confirm box with message like "Are you sure want to remove this item ?" If user click Yes proceed to delete if click No nothing to do that's it. In this example we will create "items" table and two routes with GET and DELETE method. one route will list of all items and another for remove item. So basically we will also create one controller with two method. So it is very easy and simple to create example for confirm before delete database row. So let's proceed to complete all step and do that. i simply use confirm() of jquery, but you can also use switalert(), bootstrap model etc as you want. So let's follow bellow steps: Step 1: Create items Table In this step we will create new database "test" and...