Search Results For: controller
Showing 1 to 4 of 4 blog articles.
2013 views · 119 days ago

![Working With Thin Controller And Fat Model Concept In Laravel](

Models and controllers are one of the most essential programming handlers in the Laravel MVC framework, and both are used vastly for different functional operations. Models in Laravel are created inside the app folder and are mostly used to interact with the database using Eloquent ORM, while the controllers are located inside the directory App/Http/Controllers.

As a programmer, you should have the knowledge how to keep the balance in between the programming usage of Models and controllers. As which one should be more utilized for allowing functional tasks in applications deployed on any [PHP MySQL hosting](

## What is the Concept of Thin Controller and FAT Models

The concept of ...

3371 views · 120 days ago

![Generate PDF from HTML in Laravel 5.7](

Today, I will share with you how to create a PDF file from HTML blade file in Laravel 5.7. We will be using `dompdf` package for generating the PDF file.

In the below example, we will install `barryvdh/laravel-dompdf` using composer package and thereafter we will add new route url with controller. Then we will create a blade file. Then after we have to just run project with serve and we can check the PDF file is for download.

## Download Laravel 5.7

Now I am going to explain the step by step from scratch with laravel installation for `dompdf`. To get started, we need to download fresh Laravel 5.7 application using command, so open our terminal and run the below command in the command prompt:


composer create-project --prefer-dist laravel/lara...

1137 views · 128 days ago

![Creating a Tiny Blog Management system in Laravel 5.7](

Hey There,

I am expecting you are familiar with PHP. In this post I will be using the Laravel framework to create a small blog system. I am showing here very simple steps to create blogs, If you want this complete code then please message me.

**What are major Prequisites for Laravel:**

* PHP version >= 5.6

* Composer should be installed in system

Create a project with name tiny_blog with following command

```composer create-project laravel/laravel --prefer-dist tiny_blog```

enter into the laravel project

```cd tiny_blog```

create a migration file using following artisan command

<pre>php artisan make:migration create_blog_table</pre>

After this command you will fou...

911 views · 134 days ago

![Making Charts and Graphs using Laravel](

## Installing composer

Composer is a package management tool for PHP. Laravel requires composer for installation. We can download composer from [](

After installation that you can test whether composer installed or not by command


## Installing Laravel

The current stable version of laravel is laravel 5.6. We can install laravel package with three ways.

In command prompt or terminal by running `composer global require "laravel/installer"` and then `Laravel new `


We can create the project with Composer by running `composer create-project --prefer-dist laravel/laravel `