Laravel authentication
Authentication is the process of identifying the user credentials. In web applications, authentication is managed by sessions which take the input parameters such as email or username and password, for…
Authentication is the process of identifying the user credentials. In web applications, authentication is managed by sessions which take the input parameters such as email or username and password, for…
Laravel is an MVC based PHP framework. In MVC architecture, ‘M’ stands for ‘Model’. A Model is basically a way for querying data to and from the table in the database. Laravel provides a…
Integrating a payment gateway is a critical aspect of any e-commerce application. In this guide, we will walk through the process of creating a checkout system in Laravel using Stripe.…
The acronym CRUD means Create, Read, Update, and Delete. Any application that uses persistent data must have CRUD operations. The CRUD is an important thing that developers keep in mind…
http://localhost/codeigniter/ci3/index?id=3 (url) public function index() (controller) { $id = $_GET['id']; echo $id; die(); $arr['data'] = $this->WelcomeModel->index(); $this->load->view('pages/home', $arr); } http://localhost/codeigniter/ci3/index/4 public function index($id = 3, $name = 'homepage') { echo…
Model: defined('BASEPATH') OR exit('No direct script access allowed'); class WelcomeModel extends CI_Model { function index(){ $data = ['name' => 'Pankaj Kumar Loniya', 'age' => 28]; return $data; } } Controller:…
WelcomeModel .php (model): defined('BASEPATH') OR exit('No direct script access allowed'); class WelcomeModel extends CI_Model { function index(){ echo "about model"; } } Welcome.php (controller): defined('BASEPATH') OR exit('No direct script access…