Which will take effect?

|
YOUCODEWORLD 2021-12-10 05:45:54
If you first have model, go to the migrations file and set the properties to be used only when you run the command.
YOUCODEWORLD 2021-12-10 05:47:14
Roll Back & Migrate Using A Single Command
The migrate:refresh command will roll back all of your migrations and then execute the migrate command. This command effectively re-creates your entire database:
YOUCODEWORLD 2021-12-10 05:47:36
https://laravel.com/docs/8.x/migrations
🖖 2021-12-10 05:48:17
if I did something like this:

Schema::create(‘pages’, function (Blueprint $table) {
$table->increments();

});

Then an my model, I do this:

class Page {
protected $increments = false;
}

Which will take effect?

YOUCODEWORLD 2021-12-10 05:49:34
🖖 2021-12-10 05:48:17
if I did something like this:

Schema::create(‘pages’, function (Blueprint $table) {
$table->increments();

});

Then an my model, I do this:

class Page {
protected $increments = false;
}

Which will take effect?

protected $increments = false; not increments table ID

YOUCODEWORLD 2021-12-10 05:51:36
laravel_discuss-101817.jpg

YOUCODEWORLD 2021-12-10 05:51:55
https://laravel.com/docs/8.x/eloquent#primary-keys
🖖 2021-12-10 05:56:18
what about if I did something like this:

Schema::create(‘pages’, function (Blueprint $table) {
$table->timestamps();

});

Then an my model, I do this:

class Page {
protected $timestamps = false;
}

Which will take effect?

igxpro 2021-12-10 07:14:49
2020-11-23 10:06:00
Hello,
I wanna ask u About laravel
How to solve error : target class [AppControllersAuthController] does not exist

I already try YouTube tutorial but still error 🥺
Thanks

Route::get(‘/’, ‘AppHttpControllersAuthController@function_name’) ;

onrbzkrt 2021-12-10 08:30:07
If anyone is looking for Laravel Developer, I can work full time or part time. I have 2 years of experience and many projects
onrbzkrt 2021-12-10 08:30:31
I have permit in USA and Turkey
akhlesh1988 2021-12-10 09:47:54
We need flutter app developer
RahiMSuleymaN 2021-12-10 09:56:35
laravel_discuss-101828.jpg
Hi everyone when I deploy site, index.php shows as string
RahiMSuleymaN 2021-12-10 09:56:57
how can I solve?
parmonov98 2021-12-10 10:04:21
RahiMSuleymaN 2021-12-10 09:56:35
Hi everyone when I deploy site, index.php shows as string

your web server doesn’t have PHP module to interpret PHP files.

parmonov98 2021-12-10 10:05:02
RahiMSuleymaN 2021-12-10 09:56:57
how can I solve?

solution: you have to set up your web server(NGINX, Apache2 or the one being used.).

RahiMSuleymaN 2021-12-10 10:05:23
But other php(laravel) projects work finely
RahiMSuleymaN 2021-12-10 10:05:43
parmonov98 2021-12-10 10:05:02
solution: you have to set up your web server(NGINX, Apache2 or the one being used.).

apache2 setuped already

parmonov98 2021-12-10 10:06:12
RahiMSuleymaN 2021-12-10 10:05:23
But other php(laravel) projects work finely

ask sysadmin or write a ticket to support…

husifer 2021-12-10 10:20:23
I need someone to develop admin panel and re design my blogger theme. I want to convert that theme into cms. full cms website with admin panel. if interested pm me. budget is 100$
Dilawar Naseem 2021-12-10 10:39:18
I have created a report which shows all the data. But now i want to pass filtered data to pdf .

E.g students of one departments.

I already have created the filer by i can’t seem to find q way to pass the filtered data tp pdf

Abiodun_Web 2021-12-10 10:42:57
Dilawar Naseem 2021-12-10 10:39:18
I have created a report which shows all the data. But now i want to pass filtered data to pdf .

E.g students of one departments.

I already have created the filer by i can’t seem to find q way to pass the filtered data tp pdf

Laravel?

Dilawar Naseem 2021-12-10 10:43:51
Abiodun_Web 2021-12-10 10:42:57
Laravel?

Yes

Abiodun_Web 2021-12-10 10:44:00
Dilawar Naseem 2021-12-10 10:39:18
I have created a report which shows all the data. But now i want to pass filtered data to pdf .

E.g students of one departments.

I already have created the filer by i can’t seem to find q way to pass the filtered data tp pdf

You do that from your controller

Dilawar Naseem 2021-12-10 10:44:25
Abiodun_Web 2021-12-10 10:44:00
You do that from your controller

Can u suggest an example

Billygotclout 2021-12-10 11:52:19
Please who has setup a web server in linode for laravel
Dinon250 2021-12-10 14:05:52
https://www.youtube.com/watch?v=TDH_yDc042k?sub_confirmation=1

Sending Email in laravel 8 Using smtp – Google SMTP to Send Mail in LaravelYouTube
#TechHub #SMTP
– In this video, I will explain how to Send Email in laravel 8 Using smtp | Google SMTP to Send Mail in Laravel |Laravel and Configurations.We will use a blade template to create view for email content.
skpnation 2021-12-10 15:05:22
How do you get current logged in authenticated user’s email with passport in laravel?
Abiodun_Web 2021-12-10 15:22:15
skpnation 2021-12-10 15:05:22
How do you get current logged in authenticated user’s email with passport in laravel?

Auth::guard(‘guard_name’s)->user( )->id

if you using a guard this should return the logged in user

skpnation 2021-12-10 15:24:36
Abiodun_Web 2021-12-10 15:22:15
Auth::guard(‘guard_name’s)->user( )->id

if you using a guard this should return the logged in user

what is ‘guard_name’s ? for

Itech_programmer 2021-12-10 15:25:44
skpnation 2021-12-10 15:24:36
what is ‘guard_name’s ? for

web, api or custom

skpnation 2021-12-10 15:28:23
So it can be anything
skpnation 2021-12-10 15:29:22
Itech_programmer 2021-12-10 15:25:44
web, api or custom

sent you a dm

Abiodun_Web 2021-12-10 15:29:45
skpnation 2021-12-10 15:05:22
How do you get current logged in authenticated user’s email with passport in laravel?

Or you can

Auth()->(‘users’)->username
Auth()->(‘users’)->id

skpnation 2021-12-10 15:32:21
Abiodun_Web 2021-12-10 15:29:45
Or you can

Auth()->(‘users’)->username
Auth()->(‘users’)->id

syntax error, unexpected token “(“, expecting identifier or variable or “{” or “$”

|