The problem with this section is the the CUSTOMER_ID doesn't match the ACTUAL customers ID table data because in the InvoiceFactory the database was set to 'customer_id' => $this->faker->numberBetween(10,20), but the ACTUAL DATABASE just counted the AUTOINCREMENTED ID 1, 2, 3, 4 and 5 (NOT RANDOM AT ALL). If you open your database, go to the invoices table and change the CUSTOMER_ID to the 5 entries of 1, 2, 3, 4 or 5, of the 5 entries, refresh your screen and your "faker" data will appear on the screen. This is an oversite in planning. All these "great tutorials" comment must be "FAKER"s as this tutorial is PLAGUED with problems like this! I maybe learning VUE but I am no idiot. There should be a disclaimer on this project.
@devs-share-tutorials did you change the customer table name? because I realised before this on customers table there's an 's' as in customers not customer. Can you help?
Thank you .. I encountered an error on the mounting in the script. I changed the code to this ... import { onMounted, ref } from 'vue'; export default { setup() { let invoices = ref([]); onMounted(async () => { await getInvoices(); }); const getInvoices = async () => { try { let response = await axios.get("/api/get_all_invoice"); invoices.value = response.data; console.log('response', response ); } catch (error) { console.error('Error fetching invoices:', error); } }; return { invoices, }; }, }; I just hope to help anyone else that maybe gets the errors there as well .......> Many thanks for the great tutorial
Thank you for the tutorial! I can't get customer_name instead of customer_id the codes are the same as yours, but it does not show any error and it does not show the customer's name I appreciate if you could help me with that thank you
The issue is the invoice table is not looking for the proper customer ID. Change the customer_id column in the invoices to match the ACTUAL customers ID (1, 2, 3, 4 or 5) of 5 entries in the customers table in the database.
Awesome tutorial..! This is un underrated channel due to not adopting fancy video creation methods.
hoping for the next video soon ...... 😍
The problem with this section is the the CUSTOMER_ID doesn't match the ACTUAL customers ID table data because in the InvoiceFactory the database was set to 'customer_id' => $this->faker->numberBetween(10,20), but the ACTUAL DATABASE just counted the AUTOINCREMENTED ID 1, 2, 3, 4 and 5 (NOT RANDOM AT ALL). If you open your database, go to the invoices table and change the CUSTOMER_ID to the 5 entries of 1, 2, 3, 4 or 5, of the 5 entries, refresh your screen and your "faker" data will appear on the screen. This is an oversite in planning. All these "great tutorials" comment must be "FAKER"s as this tutorial is PLAGUED with problems like this! I maybe learning VUE but I am no idiot. There should be a disclaimer on this project.
Do I need to import axios somewhere? 7:20 my response object does not have invoices, just HTML
Hola
La api donde esta?
Thank you
why all axios request return 500 response?! even in the portfolio project i had the same issue!
@devs-share-tutorials did you change the customer table name? because I realised before this on customers table there's an 's' as in customers not customer. Can you help?
Find source code to sharetutorialsdev@gmail.com
Thank you ..
I encountered an error on the mounting in the script.
I changed the code to this ...
import { onMounted, ref } from 'vue';
export default {
setup() {
let invoices = ref([]);
onMounted(async () => {
await getInvoices();
});
const getInvoices = async () => {
try {
let response = await axios.get("/api/get_all_invoice");
invoices.value = response.data;
console.log('response', response );
} catch (error) {
console.error('Error fetching invoices:', error);
}
};
return {
invoices,
};
},
};
I just hope to help anyone else that maybe gets the errors there as well
.......>
Many thanks for the great tutorial
This does nothing but throw an error in on the page of an out dated ES process. DO NOT USE THIS.
Thank you for the tutorial!
I can't get customer_name instead of customer_id
the codes are the same as yours, but it does not show any error and it does not show the customer's name
I appreciate if you could help me with that thank you
I think need to add customer_name on the invoices table
The issue is the invoice table is not looking for the proper customer ID. Change the customer_id column in the invoices to match the ACTUAL customers ID (1, 2, 3, 4 or 5) of 5 entries in the customers table in the database.
customer data is not showing
thnx for the tutorial, hoping for the next vid soon
Thank you for the tutorial!
Very good !!!
thank you
thanks 😍
🙏 Promo sm
Thank you for the tutorial!