I have a Mailable class in my project to send emails however I can’t send emails
because it throws undefined variable error. Whats wierd is this code works locally
but not on my testing ..
Tag : laravel
header 1 header 2 cell 1 cell 2 cell 3 cell 4 public function relativeUpdateTaskDates($startDate, $tasks) { $startDate = Carbon::createFromFormat(‘m-d-Y’, $startDate); foreach ($tasks as $key => $task) { $interval = $key + 1; $taskDate = $startDate->copy()->addDays($interval); $task->date = $taskDate->format(‘m-d-Y’); } return $tasks; } Not enough data available to satisfy format laravel New contributor Mudassir hussain ..
I am doing final year project one online voting system using Laravel framework. First steps of voting is that voters have to select the event and need to scan the voter card and voters details will display since information about voters is already stored in database. But problem is that I could not generate a dynamic one time usable link that will redirect to select event for v..
I would like users to be able to give each other ratings. I am unsure which relationship to use and how to do it correctly. Will one-to-many
work best in this case since a rating
is given by a user to another..
Im making a query on laravel php for my proyect, and I have this s..
I’m looking for a way to view the images contained in a private folder in storage: here is the asset storage/app/private/images/nomefile.jpg my problem is that I would like to view the images only via asset blade and not view them via the full path of the URL, this is because I would like them not to be public but only viewable in the app after authentication, so via asset() there is a way. I’ve tried them all but I can’t, here’s the..
Reading the Laravel 11 documentation I saw that sessions are stored in storage/framework/session
, however according to the CIS Benchmark Guidelines this is somewhat unsafe, and our project has to follow some of these guide..
Im trying to create a new laravel project and i got the openssl extension error, In Factory.php lin..
I know this is a topic already covered but I’ll explain my problem. Initially the project was developed with the resources exposed in plain text in the public folder. Each image that is uploaded is located in an images subfolder and it is located in images which in turn is located in Laravel’s public folder so the full path would be public_path/images/images/filename.jpg
now they asked me not to make the resources clear anymore so if I write the complete address of the image in the URL I can view it. I don’t want to change the destination in storage because it would be too much work. Is there a way to not display the images? I have already tried with a middleware and .htaccess but nothing to do. I hope you can he..
<div class=”container”> <div class=”row”> <div class=”col-lg-12″> <div class=”content”> <div class=”content-header”> <h3>Laravel Auth</h3> </div> <div class=”content-body”> <form action=”{{route(‘customer.register.submit’)}}” method=”post” enctype=”multipart/form-data”> @csrf @if ($errors->any()) <div class=”alert alert-danger”> <ul> @foreach ($errors->all() as $error) <li>{{ $error }}</li> @endforeach </ul> </div> @endif <div class=”mb-3″> <label for=”name” class=”label”></label> <input type=”text” name=”name” id=”name” class=”form-control”> </div> <div class=”mb-3″> <button type=”submit” class=”btn w-100″>Regsiter</button> </div> ..