But can I access that table in my lavarel code page?

|
simon_an 2021-05-02 17:16:04
natghi2010 2021-05-02 17:10:53
if it is available on app.js why wouldnt it be availaible in the scripts

Let me explain, Vue Js is a library. So when you write vue code, when you run
npm run dev
, the vue code is converted to Javascript and output in public/js/app.js and the browser understands it. So if you write the vue code in blade files, the browser cannot understand that that’s Javascript.

natghi2010 2021-05-02 17:17:00
simon_an 2021-05-02 17:16:04
Let me explain, Vue Js is a library. So when you write vue code, when you run
npm run dev
, the vue code is converted to Javascript and output in public/js/app.js and the browser understands it. So if you write the vue code in blade files, the browser cannot understand that that’s Javascript.

you know whats confusing me

natghi2010 2021-05-02 17:17:15
ive seen this way work
natghi2010 2021-05-02 17:17:57
https://www.youtube.com/watch?v=xIEybma2RqM

Websockets in Laravel – Part 2: Setting up Comments API & AJAXYouTube
We are all anxious to get writing some code to interact with websockets, but first we need to build the foundation of code necessary to start submitting and displaying comments to our users. Once we have this part setup, then we can easily add websockets to it to enhance the experience even more.

This episode will create a small API for us to interact with and will create some structure to save our comments.

First we need to create a database migration to store our comments. This will require creating a migration, a model, and a controller for our comments.

We will make 2 API endpoints for our comments. The first is to display all comments for a specific post. The second endpoint will allow us to save a new comment via the API.

Then its time to use this API by setting up our frontend. We will create two Vue.js methods to handle this. The first is getComments() which gets all the comments for the current post, and the second is postComments() which will post a new comment for the current post.

Next up: We actually connect websockets to display new comments onto the page as they are submitted live!

==== WRITTEN TUTORIALS ====

“Mastering Websockets in Laravel” Master Series Page:

Mastering Websockets with Laravel Echo

Part 2: Setting Up Comments AJAX (Written Tutorial)

Websockets in Laravel – Part 2: Creating Comments AJAX


==== MORE FROM THIS SERIES . ====

Full Playlist for the “Mastering Websockets in Laravel” Series:

==== DOWNLOAD SOURCE CODE ====

Github Code Repo for this Series:
https://github.com/DevMarketer/Laravel_Echo_Tutorial

Download Source Code for this Episode:
https://github.com/DevMarketer/Laravel_Echo_Tutorial/releases/tag/Part2

==== FOLLOW ME ====

Subscribe for New Releases!

Subscribe to DevMarketer Insider (Email)
https://confirmsubscription.com/h/d/5EDC91CF554832D1

Twitter – http://twitter.com/_jacurtis
(ask me questions!)

==== QUESTIONS? ====

Leave a comment below and I or someone else can help you.
For quick questions you may also want to ask me on Twitter, I respond almost immediately.

Email me hello@jacurtis.com

Thanks for all your support!

natghi2010 2021-05-02 17:18:07
for this dude
simon_an 2021-05-02 17:18:11
natghi2010 2021-05-02 17:17:15
ive seen this way work

It worked because you can also use vue cdn package

natghi2010 2021-05-02 17:18:19
simon_an 2021-05-02 17:18:11
It worked because you can also use vue cdn package

oh I see

Shri 2021-05-02 17:45:41
Hey, if we already build table by using migration in laravel and now I want to add column so how to do…like delete table and return execute command or is any other way to update table?
krishu_7 2021-05-02 17:50:18
Shri 2021-05-02 17:45:41
Hey, if we already build table by using migration in laravel and now I want to add column so how to do…like delete table and return execute command or is any other way to update table?

You can try rollback and add the field in migration file and run migrate (if that’s the last migration )

Shri 2021-05-02 17:52:40
Okay if it’s not last may be in future we have to add some more column so no option for that??
Rk Biswa 2021-05-02 18:18:51
Can anyone provide me laravel 8 best youtube tutorial
simon_an 2021-05-02 18:19:11
Shri 2021-05-02 17:52:40
Okay if it’s not last may be in future we have to add some more column so no option for that??

You create a migration for adding the column

simon_an 2021-05-02 18:21:23
Shri 2021-05-02 17:52:40
Okay if it’s not last may be in future we have to add some more column so no option for that??

https://stackoverflow.com/questions/16791613/add-a-new-column-to-existing-table-in-a-migration

Add a new column to existing table in a migrationStack Overflow
I can’t figure out how to add a new column to my existing database table using the Laravel framework.

I tried to edit the migration file using…

<?php

public function up()
{
Schema::crea…

simon_an 2021-05-02 18:21:35
Read that
Shri 2021-05-02 18:29:24
Okay
SureshLaraDev 2021-05-02 18:30:38
2021-05-02 14:30:40
If I search in the name of the user I want to show only user all data which i search

By default yajra works in that manner.

I just want peace please 2021-05-02 18:31:12
https://www.cyber-warrior.org/Forum/laravel-8-site-settings-actions_640871,0.cwx

Erişim Engellendiwww.cyber-warrior.org
Cyber-Warrior.Org / AKINCILAR Turkiye’nin Siber Sivil Savunma Gucu – Turk Hackerlar
Shri 2021-05-02 18:39:07
By using migration can we create view table
SureshLaraDev 2021-05-02 18:39:38
Migration can do it.
Shri 2021-05-02 18:39:38
I check on Google but about syntax I am not sure
Shri 2021-05-02 18:39:49
How?
SureshLaraDev 2021-05-02 18:40:36
What’s that view table?? Is that name of that table??
Shri 2021-05-02 18:41:34
laravel_discuss-79070.jpg
These are the table
Shri 2021-05-02 18:42:22
laravel_discuss-79071.jpg
By using this we can create simple table
Shri 2021-05-02 18:48:35
laravel_discuss-79072.jpg
By using this query directly on xamp I can create view table ..but can I access that table in my lavarel code page?
SureshLaraDev 2021-05-02 18:52:21
You can use artisan command to to do this.
pavelk1103 2021-05-02 19:18:07
Why people in this group cannot take screenshots?
pavelk1103 2021-05-02 19:18:31
Is it that difficult or what?
sobirjonovs 2021-05-02 19:20:56
pavelk1103 2021-05-02 19:18:07
Why people in this group cannot take screenshots?

who exactly?

pavelk1103 2021-05-02 19:21:44
sobirjonovs 2021-05-02 19:20:56
who exactly?

almost everyone

sobirjonovs 2021-05-02 19:22:28
pavelk1103 2021-05-02 19:21:44
almost everyone

Everybody can take screenshot

pavelk1103 2021-05-02 19:22:54
Shri 2021-05-02 18:48:35
By using this query directly on xamp I can create view table ..but can I access that table in my lavarel code page?

does it look as a screenshot for you?

sobirjonovs 2021-05-02 19:23:13
πŸ˜‚πŸ€¦πŸ»β€β™‚οΈ oh no, I didn’t see that
pavelk1103 2021-05-02 19:23:34
rebory 2021-05-02 15:04:35
Like this

or this

pavelk1103 2021-05-02 19:23:45
aldrin_elvis 2021-05-01 18:28:14
Hello guys? Any idea why that type of error comes up in laravel 8?

or that

|