Tag

Laravel 7

Browsing

Hey, Real Programmer, I will share with you how to add or remove dynamically input fields using jQuery with laravel validation.some times we need this type of functionality in our web application.like some module has the same information with different values, in this case, we should do this using add or remove input fields dynamically using jQuery in our HTML form. I created “tagslist” table and it’s model. I created a simple form and there…

https://youtu.be/85fvgXmc-2E Hey, Real Programmer, I am going to share with you How to send email verification example in laravel 7, I would like to share with you how to verify email after user registration in the laravel app. I will use laravel new feature MustEmailVerify Contracts and after the user successfully verifies email that time we will authenticate and redirect to the user dashboard. We will show you each thing step by step. If the…

Hey, Real Programmer, I am going to share with you how to create a dynamic category tree view structure in Laravel 7 application using jquery. We sometimes require to make tree view structure for category and subcategory. In this tutorial, I simply create “categories” table and manage end level of parents and child category with nested tree view structure in Laravel application. I use jquery to make tree view layout and child relationship with the…

Hey, Real Programmer, I will brief you step by step livewire form in Laravel 7. I will guide you step by step. let’s follow the tutorial and implement it. Livewire is a laravel framework that makes building dynamic interfaces simple, without leaving the comfort of Laravel. if you are using livewire with laravel then you don’t worry about writing jquery ajax code, livewire will help to write very simple way jquery ajax code using PHP.…

https://www.youtube.com/watch?v=Kwt1guvyJgM Step 1: Install Laravel 7 first of all, we need to get fresh Laravel 7 version application using bellow command, So open your terminal OR command prompt and run bellow command: composer create-project –prefer-dist laravel/laravel todoApp Open your project in vs codeConfigure your database (.env file) DB_CONNECTION=mysql DB_HOST=127.0.0.1 DB_PORT=3306 DB_DATABASE=quickstart DB_USERNAME=root DB_PASSWORD=root@123 php artisan make:migration create_tasks_table –create=tasks Open migration file Put this line inside of migration table public function up() { Schema::create(‘tasks’, function (Blueprint…

Renaming the server.php to index.php Copy the .htaccess from public folder to root folder Changing .htaccess it a bit as follows for statics: <IfModule mod_rewrite.c> <IfModule mod_negotiation.c> Options -MultiViews -Indexes </IfModule> RewriteEngine On RewriteCond %{REQUEST_FILENAME} !-d RewriteRule ^(.*)/$ /$1 [L,R=301] RewriteCond %{REQUEST_URI} !(\.css|\.js|\.png|\.jpg|\.gif|robots\.txt)$ [NC] RewriteCond %{REQUEST_FILENAME} !-d RewriteCond %{REQUEST_FILENAME} !-f RewriteRule ^ index.php [L] RewriteCond %{REQUEST_FILENAME} !-d RewriteCond %{REQUEST_FILENAME} !-f RewriteCond %{REQUEST_URI} !^/public/ RewriteRule ^(css|js|images)/(.*)$ public/$1/$2 [L,NC] </IfModule>

Example 1: public function admin() { $admin = Admin::select(‘name’,’id’) ->where(‘id’, $adminID) ->where(‘name’, $name) ->get(); dd($admin); } Example 2: public function admin() { $admin = Admin::select(‘*’) ->where([ [’id’, $adminID], [’name’, $name] ]) ->get(); dd($admin); }