Комментарии:
Reddit Clone Full Tutorial with Laravel, Inertia JS and VueJS | Fullstack Project
Ответитьi cant get vite to work on my fresh laravel app
ОтветитьThank you brother. I am trying. How to use sweetalert 2 with vue+inertia+laravel9 brother?
<Link :href="route('communities.destroy', community.id)" method="delete" as="button" type="button">Delete</Link>
this is my code to delete but its not looking good. i want to use sweet alert but <script setup> and direct link . what to do?
Great tutorial, I am having errors around 1h10m in, Return to Route('communities.index'); - doesn't seem to work, can you answer git issue request?
ОтветитьYou are great. I learnt a lot from your videos. Please don't ever think to stop making these videos. Can't wait for your next Lara and vue project. Again thank you very much.
ОтветитьThanks @Laraveller for this job.
I would like to make a small contribution in terms of codes regarding User.
I recommend the users table
instead
$table->boolean('is_admin')->default(false);
$table->integer('rank')->default(1);
and
class User extends Authenticatable implements MustVerifyEmail
{
use HasApiTokens, HasFactory, Notifiable;
const DEFAULT = 1; // 2^0
const REGULAR = 2; // 2^1
const CREATOR = 4; // 2^2
const COMPOSER = 8; // 2^3
const EDITOR = 16; // 2^4
const MODERATOR = 32; // 2^5
const JANITOR = 64; // 2^6
const SUPERVISOR = 128; // 2^7
const MANAGER = 256; // 2^8
const ADMIN = 512; // 2^9
const SUPER_ADMIN =1024; // 2^10
const OWNER =2048; // 2^11
/**
* The attributes that are mass assignable.
*
* @var array<int, string>
*/
protected $fillable = [
'name',
'email',
'rank',
'password',
];
public function isDefault()
{
return ($this->rank & self::DEFAULT)==self::DEFAULT ?1:0;
}
public function isRegular()
{
return ($this->rank & self::REGULAR)==self::REGULAR ?1:0;
}
public function isCreator()
{
return ($this->rank & self::CREATOR)==self::CREATOR ? 1:0;
}
public function isComposer()
{
return ($this->rank & self::COMPOSER)==self::COMPOSER ? 1:0;
}
public function isEditor()
{
return ($this->rank & self::EDITOR)==self::EDITOR ? 1:0;
}
public function isModerator()
{
return ($this->rank & self::MODERATOR)==self::MODERATOR ? 1:0;
}
public function isjANITOR()
{
return ($this->rank & self::JANITOR) ==self::JANITOR ?1:0;
}
public function isSupervisor()
{
return ($this->rank & self::SUPERVISOR) ==self::SUPERVISOR ?1:0;
}
public function isManager()
{
return ($this->rank & self::MANAGER) == self::MANAGER ?1:0;
}
public function isAdmin()
{
return ($this->rank & self::ADMIN ) == self::ADMIN ?1:0;
}
public function isSuperAdmin()
{
return ($this->rank & self::SUPER_ADMIN) == self::SUPER_ADMIN ? 1:0;
}
public function isOwner()
{
return ($this->rank & self::OWNER) == self::OWNER ? 1:0;
}
Best regards Periklis
i love this series of videos, i wish you would explain more on why , we add lnertia and vue instead of livewire , it would create a better picture of use cases. thank you for the good work
ОтветитьThanks @Laraveller for this quality content, if possible make some videos about laravel cache with redis.
ОтветитьPls do a multi tenancy app after this..thanks a lot for your awesome tutors
ОтветитьThank you bro l followed every series
ОтветитьCan you do the react version
Ответить