Anybody knows any package for php redis ?
Is that really hard to google such a simple question?
It working good in few minutes ago can you understand ?
if you return with order id, why you store it in session them?
Why should I use Ajax calls to delete items?
Can I create a route where I pass the id of the item I want to delete?
And defining a destroy method in the controller who uses that id to destroy the item?
How can I execute cron jobs in laravel project on live server
Did you set timeschedular to run jobs ?
> Attention: I did not do session at all.
I think it’s like this:
RegisterController.php
public function register(Request $request, User $user)
{
$code = rand(10000,99999);
session->get(‘mobile’)
$user = AppUser::create([
‘first_name’ => $request->first_name,
‘last_name’ => $request->last_name,
‘gender’ => $request->gender,
‘mobile’ => $request->mobile,
‘code’ => $code,
.
.
.
return redirect()->route(‘code’)->with(‘mobile’, $request->mobile);
}
It redirect to this page.
code.blade.php
<form action=”{{ route(‘send’) }}” method=”post”>
{{ csrf_field() }}
<input type=”hidden” class=”form-control” value=”{{ session->mobile }}” name=”mobile” id=”mobile”>
<div class=”form-group”>
<label for=”code”>کد</label>
<input type=”text” class=”form-control” name=”code” id=”code”>
</div>
<div class=”form-group”>
<button type=”submit” class=”btn btn-danger” id=”btn-ok”>OK</button>
</div>
</form>
[1]: https://i.stack.imgur.com/jIOUp.jpg
Change value = “{{$mobile}}. That’s all.
https://github.com/nrk/predis
A flexible and feature-complete Redis client for PHP. – GitHub – predis/predis: A flexible and feature-complete Redis client for PHP.
If you want learn the laravel then watch my YouTube video
https://www.youtube.com/channel/UCZO9bYxot2NMNWfHWWdTzuA
Hello Friends, I am Making this channel for the educational and technology purpose. In this channel, there is a Coding Video and Learning video are available…

Got this weird error while trying to use laravel for the first time, look it up but couldn’t find anything, could someone please help?
use Session;
public function store(Request $request)
{
$order = new Order($request->all());
$order->user_id = auth()->user()->id;
$order->title = $request->title;
$order->body = $request->body;
$order->id = $request->session()->get(‘id’);
$order->description = $request->description;
$order->save();
session([‘order_id’ => $order_id]);
return redirect()->route(‘reports.index’)->with(‘order_id’, $request->id);
}
In notes page has a input hidden for get session of article id.
<input type=”hidden” class=”form-control” value=”{{ Session::get(‘order_id’) }}” name=”id” id=”id”>
But I see input hidden. It is blank . “”.
And defining a destroy method in the controller who uses that id to destroy the item?
And defining a destroy method in the controller who uses that id to destroy the item?
Yes you can
Well if you don’t want your page to refresh then Ajax is the way to delete
And defining a destroy method in the controller who uses that id to destroy the item?
yes you can.
what error? @can still works on 5.8