Does anyone here work with laravel with javascript?

|
DesolatorMagno 2019-06-06 19:06:19
Yes, i guess that if you are asking for help is because it is not working, but, it could help to help you if you give more info.
DesolatorMagno 2019-06-06 19:07:35
And besides if it is your code you should know it better that us, we can only make conjeture in base of what we can see.
oxbir 2019-06-06 19:23:31
This is orders table

public function up()
{
Schema::create(‘orders’, function (Blueprint $table) {
$table->bigIncrements(‘id’);
$table->bigInteger(‘category_id’)->unsigned();
$table->foreign(‘category_id’)->references(‘id’)->on(‘categories’)->onDelete(‘cascade’);
$table->bigInteger(‘user_id’)->unsigned();
$table->foreign(‘user_id’)->references(‘id’)->on(‘users’)->onDelete(‘cascade’);
$table->bigInteger(‘computer_id’)->unsigned()->nullable();
$table->foreign(‘computer_id’)->references(‘id’)->on(‘computers’)->onDelete(‘cascade’);
$table->boolean(‘status’)->nullable();
$table->timestamps();
});
}

oxbir 2019-06-06 19:27:05
And web.php

Route::post(‘/internets/store’, ‘InternetController@store’)->name(‘internets.store’);

loveycom 2019-06-07 08:19:31
Please analyze what you are trying to achieve.

If I am correct, let me know.
You want a situation whereby (1) user can already register and place order and (2) guest can place order and at the point of placing the order, register.

Am I correct?

oxbir 2019-06-07 08:29:22
loveycom 2019-06-07 08:19:31
Please analyze what you are trying to achieve.

If I am correct, let me know.
You want a situation whereby (1) user can already register and place order and (2) guest can place order and at the point of placing the order, register.

Am I correct?

Yes, Can you help me?

loveycom 2019-06-07 08:34:30
Sure. I can and so many others here.

I think what you need is idea on how to achieve your concept.

oxbir 2019-06-07 08:37:30
The user chooses to register and send the order. Now my problem is that the user can only choose one order once.

If the user selects the order twice, a message will appear that previously saved your order.

loveycom 2019-06-07 08:38:49
I think you might need to separate power (I mean controller). This will help you if you are protecting the order controller with some middleware that will not allow guests place order.

So if we follow this way,
You will need two controllers, let’s call them PlaceOrderController and GuestsPlaceOrderController.

loveycom 2019-06-07 08:39:53
oxbir 2019-06-07 08:37:30
The user chooses to register and send the order. Now my problem is that the user can only choose one order once.

If the user selects the order twice, a message will appear that previously saved your order.

Do you want user to be able to place order more than once?

oxbir 2019-06-07 08:44:36
loveycom 2019-06-07 08:39:53
Do you want user to be able to place order more than once?

Yes

oxbir 2019-06-07 08:46:03
I send complete my codes.
oxbir 2019-06-07 08:46:19
Can you help me?
oxbir 2019-06-07 08:55:22
؟
RoNin9392 2019-06-07 10:45:04
Hello eveyone,
Can anybody help me with my problem, my situation is I am building an app with admin and frontend.. so I decided to keep there view files separate..like in views I have a folder named admin to admin view files and frontend for frontend view files. Now every time I want to access some view file in admin.. I have to access it like

return views(‘admin.moduleName.fileName’);

what I am looking for is , if there is anyway I don’t have to write ‘admin.’ eveytime for admin view files while accessing.

RoNin9392 2019-06-07 10:52:39
Can we change view path based on route prefix ?
RoNin9392 2019-06-07 10:54:00
I mean when my route has admin prefix in it then it will render view from admin folder else from given path
RoNin9392 2019-06-07 10:57:27
yes that true, but what I want is I just don’t want to write ‘admin.’ while rendering view files for admin part only… Is there is anyway by which we can set view path for specific route group
RoNin9392 2019-06-07 10:58:53
yes.. that is correct but I don’t want to write it for every method & every controller
loveycom 2019-06-07 12:48:32
oxbir 2019-06-07 08:46:19
Can you help me?

Is the code yours or from another developer

oxbir 2019-06-07 13:15:06
My code
oxbir 2019-06-07 13:15:35
loveycom 2019-06-07 12:48:32
Is the code yours or from another developer

My code

oxbir 2019-06-07 13:44:31
LARAVEL 5.8 @can not working
oxbir 2019-06-07 13:45:57
I’ve done all the table to ‘bigInteger`
oxbir 2019-06-07 13:46:26
Method IlluminateDatabaseEloquentCollection::bigIncrements does not exist.
loveycom 2019-06-07 13:47:24
oxbir 2019-06-07 13:15:35
My code

OK. Then how come is user only allowed to place order once? When you don’t want something, how come it is there?

oxbir 2019-06-07 13:58:11
WITH checkOrder
oxbir 2019-06-07 22:23:21
Does here work with laravel?
SkipperStrange 2019-06-08 05:49:30
JoachimPro 2019-05-27 19:01:39
Hi, please I have a problem
I have finish a 5.1 laravel installation but when I look the htdocs of Xampp, I dont see the public folder.
How I can do for resolve it ?

Wtf??

2019-06-08 07:39:31
Does here someone have laravel project to study …….
2019-06-08 07:43:39
I want demo laravel project to study..to work
2019-06-08 07:50:48
Okey.. thanks bro..I preparing , studying laravel..want to develope hands on it…..because I am core PHP developer Now want to work in laravel…while switching job I have been asking working experience in laravel which I don’t have..
2019-06-08 07:54:09
Thank you!
oxbir 2019-06-08 10:44:27
Does anyone here work with laravel with javascript?
2019-06-08 10:53:30
2019-06-08 07:43:39
I want demo laravel project to study..to work

https://github.com

GitHub: Where the world builds softwareGitHub
GitHub is where over 83 million developers shape the future of software, together. Contribute to the open source community, manage your Git repositories, review code like a pro, track bugs and feat…
2019-06-08 10:53:44
oxbir 2019-06-08 10:44:27
Does anyone here work with laravel with javascript?

Laravel + ReactJS

oxbir 2019-06-08 10:54:21
2019-06-08 10:53:44
Laravel + ReactJS

Laravel ~ jquery

2019-06-08 10:54:35
it’s the same man, it’s javascript everything…
2019-06-08 10:55:00
The diference is the ReactJS it’s a pure JavaScript framework and jQuery it’s a library
2019-06-08 10:55:15
but in the end both it’s javascript
oxbir 2019-06-08 10:57:06
2019-06-08 10:55:15
but in the end both it’s javascript

Yes but I have a project

oxbir 2019-06-08 10:57:32
it is ajax and laravel 5.8
2019-06-08 10:57:43
what’s the problem?
ErgashevXurshid 2019-06-08 10:58:05
What’s problem?
2019-06-08 10:59:07
yes, I feel the same, but let’s see the problem.
2019-06-08 10:59:43
But just to let you clear @oxbir , ajax it’s a library also, and it’s JavaScript in the end.
oxbir 2019-06-08 11:00:03
ErgashevXurshid 2019-06-08 10:58:05
What’s problem?

it is my question

https://laracasts.com/discuss/channels/laravel/referenceerror-displayboxes-is-not-defined

SyntaxError: redeclaration of const selectElementLaracasts
How to display checkboxes where select option = category_id. I tried for show the checkboxes , after I select a option. And I want the same thing. But…
2019-06-08 11:01:37
oxbir 2019-06-08 11:00:03
it is my question

https://laracasts.com/discuss/channels/laravel/referenceerror-displayboxes-is-not-defined

Seriously?

2019-06-08 11:01:50
Don’t get me wrong, but you know the english language?
2019-06-08 11:02:32
because the error you’re recieving the problem is obviously and solution also
|