Laravel 10 and Vuejs 3 - Simple Invoice Application - Search Invoice
ฝัง
- เผยแพร่เมื่อ 9 ก.พ. 2025
- iIn this video we are going to see how to search invoice of this Simple Invoice Application build with Laravel 10 and Vuejs 3.
Professional contact: sharetutorialsdev@gmail.com
waiting for upcoming
can you make more videos
next video .... plz
Can't find your porfolio website in larave and vue js I was in the middle of building process ;(
Hi I cant seem to retrieve customer data column after creating a relationship in Invoice Model. Ive done everything as per this tutorial.
The staging build is incorrect. If you open your database then look at the invoices table and correct the "customer_id" with the actual customers ID's of 1, 2, 3, 4 and 5 for each entry to match, your customer_name data will appear. If you have another issue with the invoice data, go back to that chapter as you missed something there.
thnx again for the vid, hoping you upload how to add data to the database soon ^^
it's a good tutorial, thanks
Used same get function for search also
public function index(Request $request)
{
$getInvoice = Invoice::with([
'customer' => fn ($q) => $q->select('id', 'first_name'),
])
->when($request->search != null, function($query) use ($request){
$query->where('number', 'like', '%' . $request->search . '%');
})
->latest('id')->get();
return response()->json([
'invoices' => $getInvoice,
], 200);
}
So far, SO BAD. There are so many problems with this search function, it will NOT even search. It is so broken, the searchInvoice function throws an error of the function already being declared. I honestly do not even know why I am continuing this defunct project. It's a good learning curve I suppose for learning how to fix broken processes. OMG. If you call this good, I have some ocean front land for sale in Iowa!?
great job
awesome video , thanks
it's a good tutorial, thanks