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…
Model: class Flight extends Model { protected $table='my_flights'; } Controller: use App\Models\Flight; $flights = Flight::where('active', 1) ->orderBy('name') ->take(10) ->get();
Checkout.blade.php <head> <title>Checkout</title> <meta charset="utf-8"> <meta name="viewport" content="width=device-width, initial-scale=1"> <link href="https://cdn.jsdelivr.net/npm/bootstrap@5.3.0/dist/css/bootstrap.min.css" rel="stylesheet"> <script src="https://cdn.jsdelivr.net/npm/bootstrap@5.3.0/dist/js/bootstrap.bundle.min.js"></script> <script src="https://ajax.googleapis.com/ajax/libs/jquery/3.6.4/jquery.min.js"></script> </head> <br/> <?php $service_orders_details = DB::table('service_orders')->where('order_id', $order_id)->get(); foreach($service_orders_details as $t_details){ $service_template_id = $t_details->service_template_id; $service_plan_id…
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…