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 ..

Read more

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..

Read more

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..

Read more

<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> ..

Read more