[15:41] vamsikrishna
spatie permissions and roles package
[15:41] vamsikrishna
for authentication we are using passport , auth0.com
[15:47] vamsikrishna
Auth::user();
[15:50] vamsikrishna
auth::attempt($credentials)
[15:50] vamsikrishna
$credentials('name')=> $request->user_name; $credeentials('pasword')=> $request->password;
[15:56] vamsikrishna
at contorlle function $this->validate($rule,$custom emsasges')
[15:57] vamsikrishna
$rules=["name"=> 'required']
[15:57] vamsikrishna
implement validation at model user.php
[15:57] vamsikrishna
public function rules(){["name"=> 'required}
[15:59] vamsikrishna
user=>required,unique:users,name
[16:00] vamsikrishna
email=>required,unique:users,email
[16:05] vamsikrishna
facade design pattern,factory design pattern , repository , observer design patern
[16:44] More, Raj
...
[16:45] vamsikrishna
[...arra,...arr}
[16:46] vamsikrishna
{..$var,...$var2}<?php
$arr=[1,-4,3];
$c=count($arr);
for($i=0;$i<$c-1;$i++){
for($j=0;$j<$c-$i-1;$j++){
if($arr[$j] >$arr[$j+1])
{
$temp = $arr[$j];
$arr[$j]= $arr[$j+1];
$arr[$j +1]=$temp;
}
}
}
print_r($arr);
?>
select * from where name=
'%pattern%'
difference
class b abstract {
public funciton a();
public funciton b();
}
class a implemebts b{
public function a(){}
public funciton b(){}
php artisan make:trait name
class abc{
public function ced(){}
}
controller
class a extends b{
use abc;
public function abc(){
$this->abc();
}
}
$var ?? 'data';
null
space ship operator
No comments:
Post a Comment