Category : laravel-5

I have project which contains questions and answer about their vehicle buying experience and generate complaints before and after purchasing vehicle from the showroom,So they call customer and ask set of question regards to vehicle experience, This is outline of the project it’s a old project with laravel 5.3 or 5.6 something,Now the problem is ..

Read more

I wish to disable request throttling for users that are authenticated through the API. Kernel: protected $middlewareGroups = [ ‘web’ => [ AppHttpMiddlewareEncryptCookies::class, IlluminateCookieMiddlewareAddQueuedCookiesToResponse::class, IlluminateSessionMiddlewareStartSession::class, // IlluminateSessionMiddlewareAuthenticateSession::class, IlluminateViewMiddlewareShareErrorsFromSession::class, AppHttpMiddlewareVerifyCsrfToken::class, IlluminateRoutingMiddlewareSubstituteBindings::class, ], ‘api’ => [ ‘throttle:240,1’ ], ]; Throttle here will limit the requests to 240 per minute regardless of whether or not a user is ..

Read more

I am using spatie/laravel-server-monitor package . This package is Failed when run php artisan server-monitor:run-checks Here is the error update `checks` set `last_run_output` = ‘{"output":"","error_output":"ssh: connect to host xdock.com.au port 22: Connection timed outrn","exit_code":255,"exit_code_text":"Unknown error"}’, `checks`.`updated_at` = ‘2020-09-29 19:28:16’ where `id` = 5 host name is correct . but still giving this error Sourc..

Read more

i have maded and database that’s name is l6app and i have maked an table product_adds in this table i have save secondary id in array formate. now i am getting data behalf of arrays id using this Query in phpmyadmin saved data in database like [4,6,5,7,8,] SELECT * FROM tbl_product WHERE secondy_id IN (4, ..

Read more

I am installing laravel-server-monitor on laravel 5.8 but latest version of it not compatible with it so I tried to install version 1.0 of package but it gives me this error. Problem 1 – Conclusion: remove symfony/console v4.4.13 – Conclusion: don’t install symfony/console v4.4.13 – symfony/process 3.2.x-dev conflicts with symfony/console[v4.4.13]. – symfony/process v3.2.0 conflicts with ..

Read more

I need to store Password as hashed to the database, I was able to has the password but when I submit my form the password stores as un-hashed, Here’s my controller Store Function public function store(Request $request) { $hash = [‘password’ => Hash::make($request)]; //dd($hash); // HASHED PASSWORD WAS DISPLAYED HERE $user = User::create($this->validateRequest()); dd(‘User Created’); ..

Read more

I exported the table data into pdf. I have an image column in the table. After exporting this column appears as blank column instead of holding images. My controller: //upload document $product_details[‘image’] = $this->productUtil->uploadFile($request, ‘image’, (‘constants.product_img_path’), ‘image’); $imgData = base64_encode($product_details[‘image’]); And this is my script code. var pdf_btn = { extend: ‘pdfHtml5’, orientation: ‘landscape’, text: ..

Read more

I am using laravel package to merge files . it is working fine on localhost but on server it missed second last file to merge what could be the issue? if ($this->last) { $pdfMerger = new PdfMerger(); $bulk_pdf = public_path(‘bulk-pdf-consignment/manifest’ . $this->manifest_id . ‘_.pdf’); $allFilesPath = public_path(‘bulk-pdf-consignment/manifest_’ . $this->manifest_id); // if (File::exists($bulk_pdf)) { // $pdfMerger->addPDF($bulk_pdf, ..

Read more

I have multiple files in folders and I am getting files to merge them . Now I want them to fetch these files in ascending order on the base of created date? Which file is created first should come in loop iteration first. $bulk_pdf = public_path(‘bulk-pdf-consignment/manifest’ . $this->manifest_id . ‘_.pdf’); $allFilesPath = public_path(‘bulk-pdf-consignment/manifest_’ . $this->manifest_id); ..

Read more

im stuck adding column actions for edit and delete button with yajra datatables, im using DataTables Service because im wanna add export button too, here is my my datatables code : public function dataTable($query) { return datatables() ->eloquent($query); } /** * Get query source of dataTable. * * @param AppInfoDataTable $model * @return IlluminateDatabaseEloquentBuilder */ ..

Read more

My website Was run with laravel But its address is displayed in Google in this way👇👇 Https://examle.com/public/ How i can delete (public) from my url? This is my .htaccess codes:👇 <IfModule mod_rewrite.c> RewriteEngine On RewriteCond %{HTTP_HOST} ^www.(.+) [NC] RewriteRule ^(.*) http://%1/$1 [R=301,NE,L] RewriteRule ^(.*)$ public/$1 [L] </IfModule> # php — BEGIN cPanel-generated handler, do not ..

Read more

I am using Laravel 5.8, I configured an email containing the invoice sent to user after they place an order. Email is delivered when set QUEUE_DRIVER=sync but when I set it to redis/database and I run the php artisan queue:work redis –tries=5 it shows the queue is processed Processing: ModulesCheckoutMailInvoice Processed: ModulesCheckoutMailInvoice succesfully and no ..

Read more

I have a simple laravel project.I want to concatenate two string. $base_url ="https://image_base_url/"; $image_path = "/image_name.jpg"; $full_url=$base_url.$image_path; then I use full_url inside img tag like so in laravel in index.blade.php file <img src={{$full_url}} />; the full_url is correct but when it place in src it will get an ‘/’ at the end of it and ..

Read more

I know I can set selected attribute for a select tag with old put filed: <select name="country" id="state" onChange="loadlist(this.value);" > <option value="usa" {{ (old(‘state’) == ‘usa’) ? ‘selected’ : ” }}>USA</option> <option value="grm" {{ (old(‘state’) == ‘grm’) ? ‘selected’ : ” }}>Germany</option> <option value="eng" {{ (old(‘state’) == ‘eng’) ? ‘selected’ : ” }}>England</option> </select> But ..

Read more

I have a controller function that renders a view called Dashboard and other function with duplicate code for updating sub view. public function dashboard(Request $request) { // GET ALL THE VARIABLES AND PASS THEM TO THE VIEW return view(‘pages.dashboard.dashboard’, compact(‘variables’)); } public function dashboardIndicators(Request $request) { // GET ALL THE VARIABLES AND PASS THEM TO ..

Read more

This question is similar to my previous question (Laravel Blade, Pass a function through @include without checking if it exists in main view), but the solution there doesn’t work this time. I am compiling multiple similar views using @includes to reuse code. Sometimes the @includes are within foreach loops, sometimes they are not. When they ..

Read more