← prev | next →
DivByZero 2019-03-18 03:26:43
Ahmed Magdi 2019-03-17 20:49:34
Hello guys
I wanna save pdf path in database
I use public path but it save from my c directory, and i want path from public directory!!
Any idea ?
have you tried asset(‘path/to/pdf/file.pdf’) ? it will translate to /var/www/laravel/public/path/to/pdf/file.pdf
Ameerul Adib MZA 2019-03-18 05:55:40
Hello guys. i have a bit of question. what’s the difference of eloquent accessor and mutators?
htoowaikhant 2019-03-18 08:44:42
Accessors are used to format attributes when you retrieve them from the database, while mutators format the attributes before saving them to the database.
2019-03-18 09:03:21
I don’t like mutators also
2019-03-18 09:03:35
become a mess quickly
2019-03-18 09:04:07
if you’re the only person working in the project, it’s ok, but when there’s a tema envolved, man, i saw a lot retards mutators names
2019-03-18 09:04:18
like field name in the mutator define as x
2019-03-18 09:05:14
What I think is: if you have to use mutators in your build database, it’s means you database it’s not well thinked and architected.
Ahmed Magdi 2019-03-18 09:21:08
DivByZero 2019-03-18 03:26:43
have you tried asset(‘path/to/pdf/file.pdf’) ? it will translate to /var/www/laravel/public/path/to/pdf/file.pdf
No no … file is saved in folder already. . But i wanna path of that file
2019-03-18 09:48:14
Ahmed Magdi 2019-03-18 09:21:08
No no … file is saved in folder already. . But i wanna path of that file
You should have it already,.
2019-03-18 09:48:38
Because you saved it, if you use asset() to do that it’ll the default file content folder.
2019-03-18 09:48:46
or you entered it a default path?
R_IT_Geek 2019-03-18 10:15:43
hi
I have a resource called PurchaseIndexMoreResource.
In the resource below, I’ll just return one row from the puchase table.
return [
‘order_code’ => $this->order_code,
‘date’ => $this->date,
‘status’ => $this->status,
‘totalCost’ => $this->totalCost,
]
Now I want to return the products of this purchase. but the following code is wrong?
return [
‘order_code’ => $this->order_code,
‘date’ => $this->date,
‘status’ => $this->status,
‘totalCost’ => $this->totalCost,
‘products’=>$this->products->name,
]
How do I code this?
Ameerul Adib MZA 2019-03-18 10:20:06
so in a nutshell, i should reduce the use of mutators?
tonyfrenzy 2019-03-18 12:00:01
Ahmed Magdi 2019-03-17 20:49:34
Hello guys
I wanna save pdf path in database
I use public path but it save from my c directory, and i want path from public directory!!
Any idea ?
–
– if you have saved the file to:
storage/app/public/file_directory/file.pdf
– save the path to database as:
storage/file_directory/file.pdf
– then access it with
$file_db_path = storage/file_directory/file.pdf;
asset( $file_db_path )
devink0430 2019-03-18 12:03:15
Storage::url($file)
sandervoogt 2019-03-18 12:09:30
Hi Guys, I’ve a problem with uploading files to the live version of my website. After updating Laravel to the latest version. I get a 419 error that the session is expired. The strange thing is that everything works fine on my homestead test environment
sandervoogt 2019-03-18 12:10:15
Small files below 2mb have no issues
tonyfrenzy 2019-03-18 12:46:58
sandervoogt 2019-03-18 12:10:15
Small files below 2mb have no issues
You may have to tweak your php.ini file to increase your MAX_UPLOAD_SIZE to a larger size.
sandervoogt 2019-03-18 12:47:24
I already did that without succes. Also restarted the server
sandervoogt 2019-03-18 12:47:36
I use Cloudflare could that be the bottleneck?
mmosttaffaa 2019-03-18 13:29:24
sandervoogt 2019-03-18 12:47:24
I already did that without succes. Also restarted the server
please copy the error log from your project log file inside the storage folder and past it here.
so we can have a better understanding of what’s going on.
Mtatuzi 2019-03-18 16:35:32
My registration link deactivates after first registration. How can I make sure that registration link is persistent and that each user has their unique account?
tonyfrenzy 2019-03-18 17:35:39
Mtatuzi 2019-03-18 16:35:32
My registration link deactivates after first registration. How can I make sure that registration link is persistent and that each user has their unique account?
Verification link you mean?
Second question:
– Let each user choose a unique username or
– You make their name into a unique slug.
tonyfrenzy 2019-03-18 17:35:40
Security-wise, i don’t think it is advisable to have a persistent verification link since you can always generate a new one when required eg for password reset or any further activity that requires account owner verification.
Mtatuzi 2019-03-18 17:36:19
Alright
EEEN1993 2019-03-18 20:18:26

can any body have a clue on how to solve this error
linux2014 2019-03-19 05:53:27
Sorry
Harrisdtt 2019-03-19 11:10:06

hello everyone could you tell me the meaning of getting balance. I don’t know that balance is same like Input::get() or Config::get(). Please tell me what it is catching.
Ehsan 2019-03-19 13:31:01
hello everyone
i have a question
where can i get a remote job?
binumathew 2019-03-19 13:32:56
There is a Telegram channel name Remote Jobs
Ehsan 2019-03-19 13:58:41
binumathew 2019-03-19 13:32:56
There is a Telegram channel name Remote Jobs
thanks
this link in correct @remotejobss
linux2014 2019-03-19 15:22:36
هلو
x0x3b 2019-03-19 15:28:05
Arabic ? : Hello ❤️❤️
x0x3b 2019-03-19 15:30:48
tonyfrenzy 2019-03-18 12:00:01
–
– if you have saved the file to:
storage/app/public/file_directory/file.pdf
– save the path to database as:
storage/file_directory/file.pdf
– then access it with
$file_db_path = storage/file_directory/file.pdf;
asset( $file_db_path )
Line $file_db_path = storage/file_directory/file.pdf;
Why No Use asset(‘storage/file_directory/file.pdf’)
binumathew 2019-03-19 15:48:12
Ehsan 2019-03-19 13:58:41
thanks
this link in correct @remotejobss
Yes
Mnikoei 2019-03-19 18:33:36
A SPA application with laravel and Vue could work properly with session driver, is that necessary to use oauth ?
Dragon Niffobscurus 2019-03-19 22:22:30
Good evening everyone, I have a problem. I want to host a website that I develloper laravel; and I’m talking about a problem. Here it is, help me please
Dragon Niffobscurus 2019-03-19 22:23:15
danialld 2019-03-19 22:25:13
Dragon Niffobscurus 2019-03-19 22:23:15
showme your composer.json > “files”
mybe its Helpers.php
Dragon Niffobscurus 2019-03-19 22:28:54
danialld 2019-03-19 22:25:13
showme your composer.json > “files”
mybe its Helpers.php
no no
devink0430 2019-03-19 22:30:14
nginx like this
server_name laravel.test;
root /var/www/laravel/public;
Dragon Niffobscurus 2019-03-19 22:30:34
Dragon Niffobscurus 2019-03-19 22:30:43
Dragon Niffobscurus 2019-03-19 22:31:09
devink0430 2019-03-19 22:33:09
and,did you run composer install ?
Dragon Niffobscurus 2019-03-19 22:35:28
no, I’m not use SSH
Dragon Niffobscurus 2019-03-19 22:36:39
on the site of the accommodation extracted the file and I would like to have access to the home page and it brings me that
devink0430 2019-03-19 22:52:34
danialld 2019-03-17 21:15:22
How to disable compiling es6 to es5 in laravel mix ?
disable compiling es6 to es5 ? because use older browser ?
← prev | next →