Can’t get a list of streets to create a card [closed]

public function create() { $streets = street::get(); return view(‘dashboard.house.created’); } public function store(Request $request) { $this->validate($request, [ …

How to use print all comments for respective posts using relationship in Laravel 8

I am trying to print all comments per post using the relationship, Error: Property [comments] does not exist on the Eloquent builder instance. Post Model class WorkTravel extends Model { use …

PHP laravel frontend how to upload/send csv file to backend api?

How to send file as form data using laravel GuzzleHttpClient? My upload.blade.php: <form action="/upload-order" method=&…

Laravel Media Storage Best Practice

Sorry if duplicate but I couldn’t find much on web. I am working on website platform for streaming and education. The website needs to handle big files ( mostly videos) and thumbnails. The website is …

Failed to call XML Soap using PHP SoapClient

I’m trying to call SOAP xml using PHP SoapClient. However, I got the error of org.springframework.jdbc.CannotGetJdbcConnectionException: Could not get JDBC connection; nested exception is org.apache….

Larave conditional aggregation to get multiple sum of amount

Hope all is well. Anyone can tell me how can I get to run this SQL query in a the right way in Laravel? Controller: $data=DB::raw(“SELECT name as ‘name’ FROM invoices WHERE country=’$country’…

PhpSpreadsheet Reader Exception Failed to load /root_dir/public/laravel-excel-fLRGTlw9uEE2XRz0k1fXdcg2wfs2RWy7.html as a DOM Document

I have tried everything for resolving this issue but nothing worked. php artisan cache:clear php artisan view:clear php artisan route:clear php artisan config:clear Also Updated my Dependencies …

Laravel email shows images fine in Mailtrap but not visible in Gmail

I am using a simple Laravel Mailable below and have the header image displayed at the top of the email – this displays fine when going through Mailtrap.io but when the same email is sent to my Gmail …

Laravel: Passing parameters from function to Excel export

I have a laravel function that exports a Database query to Excel. I’m using MaatwebsiteExcelFacadesExcel. The problem is I’m trying to pass 2 dates as parameters but when I do so I get an Undefined …

How to Show Data After Login in Laravel

After successfully login from auth, I wan to show the data from database. But I got an error like this. Undefined variable: barangs (View: C:xampp7htdocsexample-appresourcesviewsbarang.blade….