What is a Framework in Laravel?

What is a Framework?

A framework is a set of conceptual structures and guidelines, used to build something. A framework may include predefined classes and functions that can be used to process input, manage hardware devices, and interact with system software. The purpose of the framework is to allow developers to focus on building a unique feature for their projects rather than writing code from scratch.

Why use Framework?

  • Colection of tools
  • No need to start scratch
  • Save Time
  • Improve Productivity
  • Clean Code
  • Reusable Code
  • Testing
  • Debugging

What is Web Framework?

A Web Framework or web application helps to build Web Applications. A Web framework provides tools and libraries to simplify common web development operations. This can include web services, APIs, and other resources. Web Framework help with a variety of tasks, from templating and database access to session management and code reuse. More than 80% of web app frameworks follow the Model View Controller architecture.

Some Web Framework

  • Laravel
  • Codeigniter
  • Zend
  • Django
  • Spring
Tagged : /

Tutorial for Method Attribute in html for php

What is Method Attribute?

The HTTP method used to transfer data while submitting the form is specified using the HTML form> method Attribute. The HTTP methods GET and POST are the two types of HTTP methods. With the form> element, the method attribute can be used.

Html 4

Attribute Values:

  • GET:- When using the GET method, the form data are shown in the address bar of the new browser tab once the form is submitted. It is restricted to around 3000 characters in length. It’s just good for non-sensitive data, not for sensitive data.
  • POST:– After submitting a form with the post method, the form values will not appear in the address bar of the new browser tab, as they did with the GET method. The form data is appended to the body of the HTTP request. It is unrestricted in terms of size. The outcome of this technique is not bookmarkable.

Which are the Supported Tags:



<form method="get|post">

Example 1:– This example illustrates the use of GET method attribute.


Example 2: This example illustrates the use of the POST method attribute. This method sends the form-data as an HTTP post-transaction. 


Tagged : / / / / / / / / /

How to create an attractive reflection card with a hover effect using HTML and CSS?

In this blog, I am using I am creating an attractive card with a hover effect using HTML and CSS. So, Let’s before create a “index.html” and “style.css ” page below index.html page structure define-

In this index.html page, I am using a class “container” with three images and class “container” defined in below “style.css” code-

In this style.css class, i define images & container, class after that show below reflection card in a row.

This row showing three cards with hover effect when you use mouse cursor in these images then show your hover effect.
Tagged : / / / / /

Tutorial for Enctype Attribute in html for php

What is  Enctype Attribute?

This Attribute indicates that data in the form should be encoded before being submitted to the server. This sort of property can only be utilised if the method is set to “POST.”


<form enctype = "value">

Element:– The enctype property is only applicable to the form> element.

Attribute Value: There are three values for this characteristic, which are given below:

  • application/x-www-form-urlencoded:– It’s the default setting. Before sending the data to the server, it encodes all of the characters. Spaces are converted to + symbols, while special characters are converted to their hex value.
  • multipart/form-data:– There is no character encoded in this value.
  • text/plain:– This value converts spaces to + symbols, however it does not convert special characters.



Supported Browsers: The browser supported by enctype Attribute are listed below:

  • Google Chrome
  • Internet Explorer
  • Firefox
  • Opera
  • Apple Safari

Tagged : / / / / / / /

Tutorial for Action Attribute in html used in php

What is Action Attribute?

It contains a URL that defines where to send the data after submitting the form.

It specifies the physical address of the server to which the user data should be redirected at the click of the submit button.

The action property specifies what should happen when the form is submitted.

When a user presses the submit button, the form data is usually transferred to a server file.

The form data is delivered to a file called “action page.php” in the example below. This file includes a server-side script for dealing with form data:



Tagged : / / / / / /

Complete Referance of Controller in Laravel


Controllers can group related request handling logic into a single class. Instead of defining all of your request handling logic as Closures in route files, you may wish to organize this behavior using Controller classes.

Controllers are stored in the app/Http/Controllers directory.
Controller extends the base Controller class included with Laravel.

Defining Controller Class

Run Command:- php artisan make:controller

Example:- php artisan make:controller AboutController

Path:- app/Http/Controllers/AboutController.php

Creating Route for Controller Class

Path of Controller :- app/Http/Controllers/AboutController.php

Path of Route:- routes/web.php

Syntax:- Route::get(‘uri’, [ControllerName::class, ‘method_name’]);

Passing Data from Controller to View

Path of Controller :- app/Http/Controllers/AboutController.php

Path of Route:- routes/web.php

Path of View:- resources/views/aboutme.blade.php

Multiple Methods inside Controller

Path of Controller :- app/Http/ControllersAboutController.php

Path of Route:- routes/web.php

Path of aboutme blade file:- resources/views/aboutme.blade.php

Path of aboutyou blade file:- resources/views/aboutyou.blade.php

Single Action Controller

If you would like to define a controller that only handles a single action, you may place a single __invoke method on the controller.

Run Command:- php artisan make:controller ShowAbout –invokable

Path of Controller :- app/Http/Controllers/ShowAboutController.php

Path of Route:- routes/web.php

Path of aboutme blade file:- resources/views/aboutme.blade.php

Tagged : /