Skip to main content

Posts

Laravel Get Headers From Request Example

Hi Dev, In this blog ,I Will learn you how to get header in laravel. I will show example of laravel get headers from request you can easliy laravel get all headers from request. I will explain laravel get all headers. I can blow you can easily get headers from request in laravel this example. Exmaple:1 Here In this exmaple laravel Get headers from request to a header method /** * Show the application dashboard. * * @return \Illuminate\Contracts\Support\Renderable */ public function index(Request $request) { $headers = $request->header('connection'); dd($headers); } Output : "keep-alive" Exmaple:2 Here In this exmaple laravel get headers from request using a request builder to a header method /** * Show the application dashboard. * * @return \Illuminate\Contracts\Support\Renderable */ public function index() { $headers = \Request::header(); dd($headers); } Output : array:13 [ "host" => array:1 [ 0 => "localho...

JQuery UI Slider Colorpicker Example

Hi Dev, Today, I will engender slider colorpicker utilizing jquery ui. We will show you slider colorpicker in jquery ui. you can easliy make slider colorpicker example in jquery ui.We will make slider colorpicker example utilizing jquery ui. I will give you full example of Jquery UI slider colorpicker Example. Example <!doctype html> <html lang="en"> <head> <meta charset="utf-8"> <meta name="viewport" content="width=device-width, initial-scale=1"> <title>jQuery UI Slider Colorpicker Example</title> <link rel="stylesheet" href="https://code.jquery.com/ui/1.12.1/themes/base/jquery-ui.css"> <link href="https://fonts.googleapis.com/css2?family=K2D:wght@200&family=Pathway+Gothic+One&display=swap" rel="stylesheet"> <style> body{ background-color: #000 !important; font-family: 'K2D'...

JQuery UI Progressbar Download Dialog

Hi Dev, Today, I will engender progressbar with download dialog utilizing jquery ui. We will show you progressbar with download dialog in jquery ui.you can easliy make progressbar with download dialog example in jquery ui. I will give you full example of Jquery UI progressbar with download dialog Example. Example <!doctype html> <html lang="en"> <head> <meta charset="utf-8"> <meta name="viewport" content="width=device-width, initial-scale=1"> <title>jQuery UI Progressbar - Download Dialog Example</title> <link rel="stylesheet" href="https://code.jquery.com/ui/1.12.1/themes/base/jquery-ui.css"> <style> #progressbar { margin-top: 20px; } .progress-label { font-weight: bold; text-shadow: 1px 1px 0 #fff; } .ui-dialog-titlebar-close { display: none; } .co...

Laravel One to Many Polymorphic Eloquent Relationship

Today, I Will explicate you how to utilize One to Many polymorphic eloquent relationship in laravel application. We can engender migration with peregrine key schema, retrieve records, insert incipient records, records etc. I will show you laravel morphMany relationship example. We will engender three table "projects", "videos" and "messages" and both table are connected with each other, I will utilize One to Many polymorphic relationship with each other by utilizing laravel Eloquent Model, We will first engender database migration, then model, retrieve records and then how to engender records too.One to Many polymorphic Relationship use "morphMany()" and "morphTo()" for cognation. Here, I will give you full example for laravel One to Many polymorphic eloquent relationship as bellow. Step:1 Create Migration In this step, we will need two tables in our database project, videos and messages.I will start to create the model and migrati...

Laravel 8 Custom Error Page Tutorial

Hi Dev, Today,I will learn you how engender Custom Error Page in laravel 8. we will show example of laravel 8 custom error page example . you will learn how to engender custom error page in laravel 8. you will learn how to engender 404 error page in laravel 8. we will avail you to give example of how to set 404 error page in laravel 8. if you optate to optically discern example of laravel 8 custom 404 page then you are a right place. Let's get commenced with laravel 8 incipient error page example. You require to engender blade file like 404.blade.php, 405.blade.php etc on errors(resources/view.errors) directory in laravel 8. you can optically discern i engendered 404 blade file and check it on your project. Virtually we are utilizing theme for front-end or backend side and we always probing for set 404, 500 or 505 error page design from there that we utilized for project. So it is a very simple and facile way to engender custom 404 page in laravel 8 project. i integrated below sc...

Bootstrap Datepicker - Disabled Specific dates and Saturday,Sunday

Hi Dev, Today, i will give you simple example of Boostrap datepicker datesDisabled array of dates and Sunday & Saturday. so bacially, you can enable and disable specific dates array with also enable disable saturday and sunday in bootstrap datepicker. it will useing beforeShowDay options to disable Specific days in bootstrap datepicker. we are disabled Bootstrap Datepicker in Sunday & Saturday and particular Sunday & Saturday enable useing beforeShowDay. Example <!DOCTYPE html> <html> <head> <title>Bootstrap Datepicker - Disabled Specific dates and Saturday,Sunday</title> <link rel="stylesheet" type="text/css" href="https://cdnjs.cloudflare.com/ajax/libs/twitter-bootstrap/4.3.1/css/bootstrap.css"> <link rel="stylesheet" type="text/css" href="https://cdnjs.cloudflare.com/ajax/libs/bootstrap-datepicker/1.9.0/css/bootstrap-datepicker.css"> <script src = ...

Laravel 8 Auth using Jetstream Example

Hi Dev, Today, I will show you laravel 8 authentication using jetstream. In this blog, I will give you simple example of laravel 8 auth with jetstream. you can see jetstream with auth in laravel 8 application. i would like to share with you laravel 8 jetstream auth with inertia. Few days ago laravel 8 realeased and they provides lot's of new updates. laravel 7 was using laravel/ui for auth scaffolding and now laravel 8 provide jetstream for login, registration, email verification, two-factor authentication, session management, API support and team management. Laravel 8 designed by Tailwind CSS and they provide auth using livewire and Inertia. i will show you how to add auth in laravel 8. you can easily create laravel auth with jetstream step by step. Here I will give full example for jetstream with auth in laravel 8, So let's follow bellow step by step. Laravel 8 Auth Scaffolding using Livewire Jetstream Laravel Livewire is a library that makes it simple to build modern, r...

How To Create Event Example In Laravel 8?

Hi Dev, Today,I will learn you how to create event example in laravel 8.We will show simple event example in laravel 8.Events provides a simple observer implementation, allowing you to subscribe and listen for events in your application. In this posts you can learn how to create event for email send in your laravel 8 application. event is very help to create proper progmamming way. First create event using bellow command. Step 1: Create Event php artisan make:event SendMail Next ,you can see file in this path app/Events/SendMail.php and put bellow code in that file. <?php namespace App\Events; use Illuminate\Broadcasting\Channel; use Illuminate\Broadcasting\InteractsWithSockets; use Illuminate\Broadcasting\PresenceChannel; use Illuminate\Broadcasting\PrivateChannel; use Illuminate\Contracts\Broadcasting\ShouldBroadcast; use Illuminate\Foundation\Events\Dispatchable; use Illuminate\Queue\SerializesModels; class SendMail { use Dispatchable, InteractsWithSockets, SerializesMode...

Jquery Textarea Auto Height Based on Content Example

Hi Dev, In this blog,I will learn you how to create textarea auto height based on content useing Jquery.we will show example of jquery textarea auto height based on content. if you want to see example of resize textarea to fit content then you are a right place. you can see auto resize textarea jquery. step by step explain auto expand textarea jquery. follow bellow step for auto adjust textarea height jquery. You need to set textarea auto height based on content using jquery then i will help you how to auto resize height of textarea in jquery. i will give you two examples of auto adjust textarea height using jquery. Example: 1 <!DOCTYPE html> <html> <head> <title>Javascript Auto-resize Textarea as User Types Example - nicesnippets.com</title> </head> <body> <h1>Javascript Auto-resize Textarea as User Types Example</h1> <strong>Body:</strong> <br/> <textarea id="body" style="width: 400px;...

Laravel 8 Image With Grayscale Example

Hi Guys, Today,I will learn you how to use image with grayscale in laravel 8. We will show example of image with grayscale in laravel 8. Spatie package is Image manipulation doesn't have to be hard. This PHP package makes it super easy to apply common manipulations to images like resizing, cropping and adding effects. Here, I will give you full example for simply image with grayscale using Laravel 8 as bellow. Step 1 : Install Laravel 8 Application we are going from scratch, So we require to get fresh Laravel application using bellow command, So open your terminal OR command prompt and run bellow command: composer create-project --prefer-dist laravel/laravel blog Step 2 : Install Spatie Package In this step, i will install spatie package for bellow command. composer require spatie/image Step 3: Create Routes In next step, we will add new two routes in web.php file. One route for generate image upload form and another for post method So let's simply create both route as be...

Laravel 8 Send Mail using Mailgun Tutorial

Hi Dev, In this blog,I will learn you how to send mail using mailgun in laravel 8.we will show setp by step send mail using mailgun example in laravel 8.Mailgun is very popular API to send email from website. It is very fast to send mail and also it track the mail. Tracking email is very important feature of mailgun api and you can also see how much user open your mail, click on your mail too. Mailgun send mail like work gun. I would like to show you how to setting of mailgun in our laravel 8 application. In this example you can learn to send simple mail using mailgun api. If you are use mailgun for sending email then you can save loading time and you can get mail fast. Step 1: .env First we will add configration on mail. i added my gmail account configration. so first open .env file and bellow code: MAIL_DRIVER=mailgun MAIL_HOST=smtp.mailgun.org MAIL_PORT=587 MAIL_USERNAME=yourUserName MAIL_PASSWORD=yourPassword MAIL_ENCRYPTION=tls Step 2: Get Domain and Secret Now, I need to add s...

Flutter Radio Button Tutorial Example

Hi Dev, Today, I will learn you how to create radio button in flutter. You can easily create radio button in flutter.First i will import package:flutter/material.dart , after I will make radio button using Container in Radio in flutter. Here, I will give you full example for simply display radio button using flutter as bellow. Example- Complete flutter radio button source code for main.dart file In this step, You will open main.dart and Create a Container widget then put the radio button widget inside it. import 'package:flutter/material.dart'; void main() { runApp(MyApp()); } class MyApp extends StatelessWidget { @override Widget build(BuildContext context) { return MaterialApp( title: 'Itwebtuts', theme: ThemeData( primarySwatch: Colors.red, visualDensity: VisualDensity.adaptivePlatformDensity, ), home: MyHomePage(title: 'Welcome to Itwebtuts'), ); } } class MyHomePage extends StatefulWidget { @over...

Laravel 8 Custom Validation Rules Tutorial

Hi Dev, Today,I will learn you how to use custom validation rules in laravel 8. We will show laravel 8 custom validation rules example you can easliy create custom validation rules in laravel 8.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, before, after etc. We can simple use those validation rules in laravel 8 application. But if you require to create your own custom validation like given value should be in uppercase or lowercase etc as we require. Now, we will simple represent how to make custom validator rules in laravel 8 application and it is very simple, so you have to just follow bellow step, make sure you can create only for laravel 8 we make example from scratch. In this example i ...

Jquery Email Autocomplete Example

Hi Dev, Today,I Will learn you how to implement email autocomplete in jquery.you can easliy create email autocomplete in jquery.email-autocomplete plugin through we can simple email autocomplete in our laravel,PHP, .net or etc project. In this example i use bellow js and css -jquery.js -jquery.email-autocomplete.min.js -bootstrap.min.css Example <!DOCTYPE html> <html> <head> <title>Jquery email autocomplete example</title> <script src="https://cdnjs.cloudflare.com/ajax/libs/jquery/3.1.1/jquery.min.js"></script> <script src="https://cdnjs.cloudflare.com/ajax/libs/email-autocomplete/0.1.3/jquery.email-autocomplete.min.js"></script> <link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.7/css/bootstrap.min.css"> <style type="text/css"> .eac-sugg { color: #ccc; } .m-1{ margin: 10px; ...

React Native Modal Popup Tutorial

Hi dev, Today, I will learn you how to create modal popup in react native. You can easily create modal in react native. First i will import namespace Modal , after I will make modal using modalVisible method in react native. Here, I will give you full example for simply display modal using react native as bellow. Step 1 - Create project In the first step Run the following command for create project. expo init Modal Step 2 - App.js In this step, You will open App.js file and put the code. import React, { Component } from "react"; import { Alert,Modal,StyleSheet,Text,TouchableHighlight,View ,Header } from "react-native"; class App extends Component { state = { modalVisible: false }; setModalVisible = (visible) => { this.setState({ modalVisible: visible }); } render() { const { modalVisible } = this.state; return ( <View style={styles.view}> <Text style={styles.header}>React Native Modal Popup Example itwebtu...

Jquery Responsive Multi-Level Menu Tutorial

Hi Dev Today, I will learn you how to create jquery responsive multi-level menu example. I will make of responsive multi-level menu using jquery example. We will create jquery responsive multi-level menu using dlmenu.you can click menu list on to open submenu list. Here, I will give you full example for simply display responsive multi-level menu using jquery example. as bellow. Example <!DOCTYPE html> <html lang="en" class="no-js"> <head> <meta charset="UTF-8" /> <meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1"> <meta name="viewport" content="width=device-width, initial-scale=1.0"> <title>Responsive Multi-Level Menu Using Jquery Example</title> <link href="https://www.jqueryscript.net/css/jquerysctipttop.css" rel="stylesheet" type="text/css"> <link rel="stylesheet" type="text/c...