β prev | next β
Web Developer 2022-07-17 08:23:33
Yes this may issue too
shubham Patel 2022-07-17 08:24:05
shubham Patel 2022-07-17 08:23:10
Check you app/kernal.php for
\Illuminate\Session\Middleware\StartSession::class, and
add it into protected $middleware array. Remove from protected $middlewareGroups if exist
Hope this work for you.
Check and try your issue will be solved
Web Developer 2022-07-17 08:24:35
But if his route is in same middleware then this might be not the issue
shubham Patel 2022-07-17 08:28:22
shubham Patel 2022-07-17 08:23:10
Check you app/kernal.php for
\Illuminate\Session\Middleware\StartSession::class, and
add it into protected $middleware array. Remove from protected $middlewareGroups if exist
Hope this work for you.
And add your rout in this route
Route::group([‘middleware’ => [‘web’]], function () {
// add your all routes here to store session
});
shubham Patel 2022-07-17 08:28:56
shubham Patel 2022-07-17 08:23:10
Check you app/kernal.php for
\Illuminate\Session\Middleware\StartSession::class, and
add it into protected $middleware array. Remove from protected $middlewareGroups if exist
Hope this work for you.
And check middleware session is registered or not
faawaz1 2022-07-17 08:30:17
shubham Patel 2022-07-17 08:23:10
Check you app/kernal.php for
\Illuminate\Session\Middleware\StartSession::class, and
add it into protected $middleware array. Remove from protected $middlewareGroups if exist
Hope this work for you.
Thank you very much this answer solved my problem ππ»
faawaz1 2022-07-17 08:31:17
Much appreciated
web design 2022-07-17 08:31:42
What is this error?
web design 2022-07-17 08:32:08
web design 2022-07-17 08:32:41
“`
faawaz1 2022-07-17 08:32:51
web design 2022-07-17 08:31:42
What is this error?
I just removed StartSession class from $middlewareGroups
web design 2022-07-17 08:33:09
public function up()
{
Schema::create(‘progress’, function (Blueprint $table) {
$table->id();
$table->foreignId(‘state_id’)->constrained()->cascadeOnDelete();
$table->foreignId(‘city_id’)->constrained()->cascadeOnDelete();
$table->text(‘address’);
$table->string(‘project_name’);
$table->tinyInteger(‘status’, 2);
$table->timestamps();
});
}
shubham Patel 2022-07-17 08:33:32
You have define status as primary key please check
shubham Patel 2022-07-17 08:42:20
web design 2022-07-17 08:33:09
public function up()
{
Schema::create(‘progress’, function (Blueprint $table) {
$table->id();
$table->foreignId(‘state_id’)->constrained()->cascadeOnDelete();
$table->foreignId(‘city_id’)->constrained()->cascadeOnDelete();
$table->text(‘address’);
$table->string(‘project_name’);
$table->tinyInteger(‘status’, 2);
$table->timestamps();
});
}
$table->tinyinteger(‘status’);
You can use this
shubham Patel 2022-07-17 08:42:48
And your problem is solved I think
web design 2022-07-17 08:42:52
OH
web design 2022-07-17 08:43:10
YOU
Akash Suthar 2022-07-17 08:45:32
You can also define
$table->enum(‘status’,[‘your values separated by coma’]->default (‘your default value’)
Madhesh 2022-07-17 09:31:59
i have a problem in displaying the json data to my view
Madhesh 2022-07-17 09:32:10
htmlspecialchars(): Argument #1 ($string) must be of type string, array given (View: C:\xampp\dental\resources\views\admin\prescription\view_prescription.blade.php)
Madhesh 2022-07-17 09:32:20
this is the error iam facing
Akash Suthar 2022-07-17 09:32:32
Show me your code
Akash Suthar 2022-07-17 09:33:14
Controller code and alsow blade file
Madhesh 2022-07-17 09:34:41

view_code
Akash Suthar 2022-07-17 09:37:02
{!!name!!}
Madhesh 2022-07-17 09:37:03

controller_code
Akash Suthar 2022-07-17 09:37:14
Use $name
Madhesh 2022-07-17 09:38:04
same error
Madhesh 2022-07-17 09:38:14
Akash Suthar 2022-07-17 09:37:02
{!!name!!}
Undefined constant “name” (View: C:\xampp\dental\resources\views\admin\prescription\view_prescription.blade.php)
Akash Suthar 2022-07-17 09:39:45
Madhesh 2022-07-17 09:37:03
controller_code
Send me the code of where you can redirect this data to the blade
Akash Suthar 2022-07-17 09:40:06
It’s code of when you store the data
Madhesh 2022-07-17 09:41:40
Madhesh 2022-07-17 09:43:17

these are the json value field
Akash Suthar 2022-07-17 09:45:03
Madhesh 2022-07-17 09:41:40
Can you just print your data in controller which can you pass in blade file
Akash Suthar 2022-07-17 09:45:13
And. Send me pic
Madhesh 2022-07-17 09:47:38
okay
Madhesh 2022-07-17 09:47:58
2022-07-17 09:48:52
Madhesh 2022-07-17 09:47:58
are you using chrome ?
Madhesh 2022-07-17 09:49:04
yes
Madhesh 2022-07-17 09:49:54
i want to store json data as array ?
Akash Suthar 2022-07-17 09:50:19
Madhesh 2022-07-17 09:47:58
May be there are error in array
eken_franky 2022-07-17 09:50:43
hello, please how to integrate the Cache Redis system, in a laravel project that will be deployed on a host?
Madhesh 2022-07-17 09:51:08
Akash Suthar 2022-07-17 09:50:19
May be there are error in array
what i want to do
uubek 2022-07-17 09:51:47
eken_franky 2022-07-17 09:50:43
hello, please how to integrate the Cache Redis system, in a laravel project that will be deployed on a host?
Install redis on a host, connect it
Madhesh 2022-07-17 09:52:25

how can i store this as a correct format in database
eken_franky 2022-07-17 09:54:02
uubek 2022-07-17 09:51:47
Install redis on a host, connect it
the problem is that it’s a particular host, I don’t have control over his system, to be able to install
Akash Suthar 2022-07-17 09:54:25
Madhesh 2022-07-17 09:47:58
In tour blad file include if condition when medicine data is get store in array and after array in foreach loop
uubek 2022-07-17 09:55:00
eken_franky 2022-07-17 09:54:02
the problem is that it’s a particular host, I don’t have control over his system, to be able to install
U canβt install it then, look for a host which supports redis or order vps
Parmar Mehulkumar 2022-07-17 09:55:24
Hello , how to permission middleware use in laraval 9
Madhesh 2022-07-17 09:57:19
Akash Suthar 2022-07-17 09:54:25
In tour blad file include if condition when medicine data is get store in array and after array in foreach loop
{“m_name”:[“medicine”,”medicine2″],”m_type”:[“medicine”,”medicine2″],”instruction”:[“medicine”,”medicine2″],”day”:[“1″,”12”]}
β prev | next β