Posts

Showing posts with the label Laravel

PHP frameworks in 2018 and Why i chose Laravel

PHP is the most popular server-side scripting language for developing Web applications or dynamic websites. PHP has great HTML and Database interactions. Compare to other languages, It is very simple to use. PHP has great frameworks for developing great and secure web applications. Here I am introducing some frameworks of PHP 1. Laravel: Laravel is the free open source PHP framework created by Taylor Otwell in 2011. This framework has many functions, the aim of which is to provide as fast development process as it is possible. Laravel offers the following key features – New directory structure – This new folder contains all language and template files. Route caching – Route caching feature speeds up the application route registration Authentication – Laravel 5 contains the ready to use inbuilt authentication system. Multiple file system – Laravel 5 provides the native support for multiple file system Unit testing is provided as an integral part of Laravel Template engi

Laravel artisan commands list

Image
Laravel has awesome set of artisan commands, probably the most often used are make:xxx – like make:model or make:migration etc. First, there is a command php artisan list which gives us all the commands, like this:   make:auth              Scaffold basic login and registration views and routes   make:command     Create a new Artisan command   make:controller     Create a new controller class   make:event            Create a new event class   make:job                Create a new job class   make:listener         Create a new event listener class   make:mail              Create a new email class   make:middleware  Create a new middleware class   make:migration     Create a new migration file   make:model           Create a new Eloquent model class   make:notification  Create a new notification class   make:policy           Create a new policy class   make:provider       Create a new service provider class   make:request         Create a new form request class   make

Install and configure Laravel with MongoDB on Windows

Image
Install MongoDB driver for PHP: Check your PHP version using phpinfo(). Download the zip file of dll which is suitable for your system configuration. Extract the archive and put php_mongodb.dll in your PHP extension directory. Add the following line to your php.ini file: extension=php_mongodb.dll Note: On earlier versions, the dll file was called php_mongo.dll, but on newer versions, it is called php_mongodb.dll Restart Apache to load the module. Check the output of phpinfo(). If the driver is installed correctly you should see a MongoDB section in your phpinfo() output as shown in the figure below. MongoDB Driver In case you don't see the section,cross-check the PHP version and architecture again. Install Laravel Package for MongoDB Install the latest stable version of the jenssegers/laravel-mongodb package, compatible with your version of Laravel. To check your Laravel version, run the command php artisan --version inside your Laravel Application folder. In

Multiple DataBase Connections in Laravel

This article is about using databases with different data, not necessary for load balancing (or connection pooling) between databases. Define Connections Inside of your datbase configuration file - likely app/config/database.php - you can define more than one database connection of any type. In fact, you can define as many connections as you'd like. For instance, if your application has to pull data from 2 MySQL databases, you can define them both separately: <?php return array(     'default' => 'mysql',     'connections' => array(         # Our primary database connection         'mysql' => array(             'driver'    => 'mysql',             'host'      => 'host1',             'database'  => 'database1',             'username'  => 'user1',             'password'  => 'pass1'             'charset'   => 'utf

Laravel HRMS

Image
Introduction Advanced HRM involves everything related to the employer-employee relationship and is about supporting and managing the organisation’s people and associated processes. It’s seen as a core business function essential to the organisation’s effective operation. System Rquirements PHP >= 5.5.9 OpenSSL PHP Extension PDO PHP Extension Mbstring PHP Extension Tokenizer PHP Extension MySQL 5.x or later versions Installing Process With Built In Auto Installer 1: Unzip the Download File From Codecanyon. You will find two folders, One folder contains documentation & another is Application Files. 2: Upload the Entire Application folder to your website / server 3: Next you can rename the folder to whatever you like (HRM, Advanced-HRM etc..) 4: Now visit the uploaded location using your web browser to run the installer process. 5: Follow the instructions on screen to install Advanced HRM. On Successful Installation, You will be find the Login URL. 6: For securit

Deploy Laravel Project On Heroku

Getting Started with Laravel on Heroku This guide will walk you through the configuration and deployment of a Laravel 5 application. For a general introduction to using PHP on Heroku, please refer to Getting Started with PHP on Heroku. Prerequisites: PHP (and ideally some Laravel) knowledge. A Heroku user account. Signup is free and instant. Familiarity with the Getting Started with PHP on Heroku guide, with PHP, Composer, and the Heroku CLI installed on your computer. Creating a Laravel application The application in this tutorial is based on the Laravel Installation guide. It’s worth a read before following the instructions in this article. Installing a new Laravel project: The composer create-project command is one of the ways you can bootstrap a new project based on the laravel/laravel standard application skeleton. The command below sets it up in a directory named hello_laravel using the latest version of the framework. After downloading an extensive number of de

Laravel Latest Interview Questions With Answers

Image
1.What is Laravel? Laravel is free open source “PHP framework” based on MVC Design Pattern. It is created by Taylor Otwell. Laravel provides expressive and elegant syntax that helps in creating a wonderful web application easily and quickly. 2. List some official packages provided by Laravel? Cashier Envoy Passport Scout Socialite 3. List out latest features of Laravel. Inbuilt CRSF (cross-site request forgery) Protection. Inbuilt paginations Reverse Routing Query builder Route caching Database Migration IOC (Inverse of Control) Container Or service container. 4. List out some benefits of Laravel over other Php frameworks.  Setup and customization process is easy and fast as compared to others. Inbuilt Authentication System. Supports multiple file systems Pre-loaded packages like Laravel Socialite, Laravel cashier, Laravel elixir,Passport,Laravel Scout. Eloquent ORM (Object Relation Mapping) with PHP active record implementation. Built-in command line t

Laravel 5 and Vue JS SimpleCRUD with Pagination example

Image
 Most popular JS Framework are Angular JS, Vue JS, and ReactJs. Angular JS and Vue JS are a very user-friendly JS Framework and most popular. It provides to manage whole project or application without refresh page and powerful jquery validation. In this post, I going to learn how to Simple BookCrud application with pagination using Laravel 5. In this example I added "Book Management" with you can do several options like as below: 1. Book Listing 2. Book Create 3. Book Edit 4. Book Delete Step 1: Laravel Installation In first step, If you haven't installed Laravel in your system then you have to run bellow command and get fresh Laravel project. composer create-project --prefer-dist laravel/laravel BookCrud Step 2: Create books table and model In this step we have to create migration for books table using Laravel 5 php artisan command, so first fire bellow command: php artisan make:migration create_books_table After this command, you will fin

Laravel 5 Chart example using Charts Package

Image
It's always a good fit for understanding if we use some graphical way display our progress report using the chart. So if you are working with laravel 5 framework then you can use chart very simple way and best layout. There are several js libraries available for a chart like chartjs, highcharts, google, material, chartist, fusioncharts, Morris, plottablejs etc. in this example we will just use one laravel "ConsoleTVs/Charts" composer package and you can use all the chart library. Using above library you can simply create following Charts. 1. line chart 2. area chart 3. bar chart 4. pie chart 5. donut chart 6. geo chart 7. gauge chart 8. temp chart 9. percentage chart 10. progress bar chart 11. areaspline chart 12. scatter chart Using ConsoleTVs/Charts package we can simply create above lists on the chart. We don't require to write jquery code for the chart we can manage it from a controller method. So here I give you a very easy example o