How can i do that?

|
Yash1905 2021-12-16 14:56:12
Ok
Great_Ballz_Of_Fire 2021-12-16 17:29:30
Opare 2021-12-16 05:05:01
changed but still

You have defined GET /dashboard twice. You have no route for staff/dashboard

Great_Ballz_Of_Fire 2021-12-16 17:30:31
Correct that and let’s see
ClayboardsTechnology 2021-12-16 17:46:29
Opare 2021-12-16 05:05:01
changed but still

Your naming convention is not good enough, your controllers should be StaffDashboardController and AdminDashboardController since you have more than one controller or declare both in just one controller and differentiate in the function/method name

Ubamiller 2021-12-16 18:30:27
itsAxton 2021-12-16 11:12:20
return response()->download($pdf); ? this one i tried

The $pdf needs to contain the path to the PDF file else it won’t work

Ubamiller 2021-12-16 18:32:36
Also its good practice to place your images and all other assets in an asset folder
Ubamiller 2021-12-16 18:33:03
So you could easily use the assets() method
itsAxton 2021-12-16 18:34:18
Ubamiller 2021-12-16 18:33:03
So you could easily use the assets() method

makes sense, thanks for the input 🙏🏽

itsAxton 2021-12-16 18:34:47
laravel_discuss-102505.jpg

itsAxton 2021-12-16 18:35:29
laravel_discuss-102506.jpg
it is thinking that 2021-year is a column but i want to sub 2021 with value of the column year
Ubamiller 2021-12-16 18:36:48
The first parameter the on() method takes is the column name that’s why
itsAxton 2021-12-16 18:38:27
how can i do that calculation without making it consider as a column
Ubamiller 2021-12-16 18:40:51
Opare 2021-12-16 05:05:01
changed but still

Have you solved this? If not you should not be assignong /dashboard to different route with same method

Ubamiller 2021-12-16 18:46:10
itsAxton 2021-12-16 18:38:27
how can i do that calculation without making it consider as a column

So what is the calculation you are trying to carry ou

itsAxton 2021-12-16 18:46:30
2021 – column year
itsAxton 2021-12-16 18:49:05
got it ?
Ubamiller 2021-12-16 18:55:13
Ok if I get your code well you are doing a comparison of years right?
itsAxton 2021-12-16 18:55:44
yes
itsAxton 2021-12-16 18:56:18
in db i have 2005 so i want to know how many years and compare with min and max
rawabi_alammar 2021-12-16 19:03:47
I’m edit my code on Filezilla,
I want to run the project by using ( php artisan serve)
How can i do that?!
pinchez2 2021-12-16 19:23:57
I am trying to save blog comments but all save with blog_id of 1 even if there are 5 blogs , please help
pinchez2 2021-12-16 19:24:54
Yash1905 2021-12-16 14:51:39
How to add new column in created table

Do it manually

eipekco 2021-12-16 19:25:29
Yash1905 2021-12-16 14:51:39
How to add new column in created table

using migration

eipekco 2021-12-16 19:25:39
pinchez2 2021-12-16 19:24:54
Do it manually

no its not true

Mr. N♡ ♡N€🇮🇳 2021-12-16 19:26:18
pinchez2 2021-12-16 19:23:57
I am trying to save blog comments but all save with blog_id of 1 even if there are 5 blogs , please help

May be those comments are for blog 1 … Set different blog_id for different blog 👀

Mr. N♡ ♡N€🇮🇳 2021-12-16 19:28:24
eipekco 2021-12-16 19:25:39
no its not true

Yes we can do it by manually adding field in migration file 👀

Mr. N♡ ♡N€🇮🇳 2021-12-16 19:29:02
JasurBek916 2021-12-16 14:55:19
Hi

#1 php artisan make:migration —table=columb_name

and

#2 database/migration

Schema::table(‘columb_name’, function (Blueprint $table) {
$table->string(‘phone’, 100)->after(‘columb’);
});

Like 2nd method

pinchez2 2021-12-16 19:31:27
Mr. N♡ ♡N€🇮🇳 2021-12-16 19:26:18
May be those comments are for blog 1 … Set different blog_id for different blog 👀

I am trying with different blogs definitely

JasurBek916 2021-12-16 19:35:55
Mr. N♡ ♡N€🇮🇳 2021-12-16 19:29:02
Like 2nd method

my method step by step first #1 second #2

omarkhanprog 2021-12-16 20:56:32
i have problem in api request post error ={CSRF token mismatch.}
omarkhanprog 2021-12-16 20:56:48
omarkhanprog 2021-12-16 20:56:32
i have problem in api request post error ={CSRF token mismatch.}

in react js

themanojyadav 2021-12-16 22:52:27
omarkhanprog 2021-12-16 20:56:32
i have problem in api request post error ={CSRF token mismatch.}

Use laravel sanctum or ignore the api routes for csrf check.

abdu_curry 2021-12-16 23:47:19
https://eu-quiz.xyz/43098172970097391/ What if you have a chance of a million pounds? You may want to know how strong you are and how much money you can win. Come and participate! ! !
Shanu S 2021-12-17 06:37:30
Sending mail in laravel is working in my local but not in server can any one help for this
X 2021-12-17 09:57:41
Good day, please where can I purchase a domain name at a cheap rate
|