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.....
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.....
Today, I am going to tell you how to building and apply new custom paginator view in Laravel 5.3. Laravel 5.3 added new features and update for easily implement your own manual pagination blade template.
By Default Laravel 5.3 provide us very simple bootstrap pagination view. But if you are not using bootstrap and you want to change then you can simply change OR if you want to add new bootstrap pagination layout then you can do it.
In bellow example you can see how to create custom blade layout and use them. This example from scratch so you can simply implement it in your project or laravel .....
Laravel is the best framework in PHP todays. Laravel framework provide saveral functionality and you can also find from this site. But now in this post you can learn how to create custom middleware as filter in laravel 5 example and how to use middleware in laravel 5. In this example you can learn how to add middlware from scratch in your laravel application.
In this example i added middleware for check if user is admin then it can open someroute like ACL. So i added <strong class="path">id_admin</strong> column in my users table if use have is_admin = 1 then it can access "admins" route. So .....
If you are new and you want to get attribute value then you can get easily. sometime maybe we also need to get custom attribute value, i mean data attribute value. In following example i give you three way to get custom attribute value in jquery.
<pre class="prettyprint lang-html">
<title>Get Custom Attribute Value</title>
<a href="example.com" data-id="1" myname="hd">Ex.....
Mysql custom fucntion is a very prety and intresting concept. In this posts i want to create one custom mysql function for remove special characters from table field value. this function through you can also remove special characters from string in mysql. in following sql query fire in your mysql or mssql database and check how it works. So, lets create function and how to use in select statement in sql query.
<strong class="step">Create removeSpacialChar function:</strong>
<pre class="prettyprint lang-mysql">
CREATE FUNCTION `removeSpacialChar`(`in_str` varchar(4096)) RETURNS varchar(4096) C.....