In my mail template I used image path as below : It is working with normal mail (without the queue) but not in mail in queue. By inspecting element in mail i found that when for normal mail image path is as below : But for mail queue it is : Answer You have to set a URL for your
Tag: laravel
how to display all images in a folder
I’m develop my websites and want to display all the images in a folder. I used the following code but occurred an error. <?php $sesi = Session::get('id'); $gambar = glob('archive_gambar/…
413 Request Entity Too Large nginx server in laravel homestead for windows
I am developing a site that needs a file upload. I am using Laravel homestead on windows OS. so when I try to upload i get the error 413 Request Entity Too Large. The server is Nginx/1.15.8 . How do I solve this?..most of the solution I have seen does not explain how to get the directory for the nginx
Eloquent: Get ‘max’ values from a `hasMany` -> `hasOne` relationship
I have an interesting eloquent challenge and my knowledge is not quite there to work it through, hoping you smart folks can give me some guidance. I have read this: Getting just the latest value on a …
Laravel eager loading phpunit testing
I am trying to do a GET request to retrieve a specific film via the id /GET ‘film/{id}’ etc film_table — id — description this is what is part of the response, what if I’ve many-to-many …
Order by field in many to many relation (Laravel)
I have a model School wich has a belongsToMany relation: class School extends Model { protected $fillable = [ “url”, “title”, “is_own”, ]; public function events()…
Laravel query find comma separated and normal string
I got a column called fac that values can be a single number like 2 and also can be comma separated like 2,4,5 I want to get data from database via api. Also value can be a single or comma separated too. so user can search like these: localhost/api/search {fac: 1} Or localhost/api/search {fac: 1,4,5} I used f…
The PUT method is not supported for this route. Supported methods: GET, HEAD. (Using resource)
I have saw this issue couple of times but not in this exact form. Here’s my: edit.blade.php $korisnik->id]) }}” method=”POST”&…
Laravel : @foreach Undefined variable
i have error but in foreach :Undefined variable: infos that’s my View : @foreach ($infos as $info)
{{ $info->id }}
{{ $info->name}}&…
How to authenticate user without a DB in Laravel?
I created a new project in Laravel that consumes all data from an API. For private data like a user profile, I need an access token to get the data. Once I have an access token, how do I set the …