Anybody knows any package for php redis?

|
Kvn_makwana 2019-06-12 10:34:39
Omid_On11 2019-06-10 15:31:37
Hi guys
How can I execute cron jobs in laravel project on live server

Did you set timeschedular to run jobs ?

loveycom 2019-06-12 11:43:17
oxbir 2019-06-12 08:15:36
I want to after registered a user name, age, mobile and … get the session of mobile because in next page, I want to get mobile in input hidden.

> 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.

2019-06-12 14:55:34
Anybody knows any package for php redis ?
skys215 2019-06-12 15:54:24
Is that really hard to google such a simple question?
swayoleg 2019-06-12 16:28:07
2019-06-12 14:55:34
Anybody knows any package for php redis ?

https://github.com/nrk/predis

GitHub – predis/predis: A flexible and feature-complete Redis client for PHP.GitHub
A flexible and feature-complete Redis client for PHP. – GitHub – predis/predis: A flexible and feature-complete Redis client for PHP.
tanuj225 2019-06-12 20:30:18
I am newbie and I want to learn this. Also, anyone can teach me. I will pay for assistance incase teaching charges are good šŸ‘
Yash Solanki 2019-06-13 12:54:04
tanuj225 2019-06-12 20:30:18
I am newbie and I want to learn this. Also, anyone can teach me. I will pay for assistance incase teaching charges are good šŸ‘

If you want learn the laravel then watch my YouTube video
https://www.youtube.com/channel/UCZO9bYxot2NMNWfHWWdTzuA

ManProTech LearningYouTube
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…
piyushcse 2019-06-13 14:06:48
Get a subscription of laracasts or codecourse. they are pro and good teacher !
2019-06-13 15:28:46
laravel_discuss-7151.jpg

2019-06-13 15:29:00
Guys please help me fix this issue
2019-06-13 15:30:26
Not specific page
2019-06-13 15:30:41
After loading the show this error
2019-06-13 15:30:48
laravel version 5.6
2019-06-13 15:30:55
import carbon in your project
2019-06-13 15:31:14
i think it is like thi carboncarbon such
2019-06-13 15:31:56
working fine few minutes ago
2019-06-13 15:32:34
just refresh the page show this error
2019-06-13 15:32:42
please share your code
2019-06-13 15:33:26
This error showing in loading page
2019-06-13 15:33:47
i cannot move to next screen
2019-06-13 15:34:08
did use CarbonCarbon; in your file where you use CArbon class
2019-06-13 15:35:23
Ya used.It working good in few minutes ago can you understand ? what i tell you
2019-06-13 15:38:24
see you composer.json
2019-06-13 15:38:26
https://stackoverflow.com/questions/49199256/laravel-declaration-of-illuminate-support-carbon-set-statearray-array-sh

Laravel – Declaration of IlluminateSupportCarbon::__set_state(array $array) should be compatible with CarbonCarbon::__set_state($state)Stack Overflow
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?
2019-06-13 15:38:28
read this
2019-06-13 15:39:18
K Thanks bro Rahmatullo I fix it
skys215 2019-06-13 16:33:04
Never faced it before. But it says fk is incorrectly formed
skys215 2019-06-13 16:36:52
Nope. Just try checking the foreign key setups
beerstory19 2019-06-14 12:35:16
Check your fk setup
RoNin9392 2019-06-14 14:19:04
Import it using console if you can access console.
RoNin9392 2019-06-14 15:06:48
I think still you can get ssh access for that
skys215 2019-06-14 15:29:27
Disable timeout
oxbir 2019-06-15 00:14:39
I have an order and I want to after save, get in session current id of order for next page reports.

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 . “”.

DesolatorMagno 2019-06-15 00:21:59
if you return with order id, why you store it in session them?
g4uss79 2019-06-15 09:12:40
Ciao
g4uss79 2019-06-15 09:12:51
Hi to all
g4uss79 2019-06-15 09:13:15
Sorry guys. I’m trying to learn Laravel
g4uss79 2019-06-15 09:13:43
I need some help
g4uss79 2019-06-15 09:14:05
I’m learning about the query builder
g4uss79 2019-06-15 09:14:47
Reading on the internet I saw a lot of people deleting items of a table using Ajax
g4uss79 2019-06-15 09:15:14
Why should I use Ajax calls to delete items?
g4uss79 2019-06-15 09:16:35
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?
praneet81 2019-06-15 10:11:51
g4uss79 2019-06-15 09:16:35
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?

Yes you can

praneet81 2019-06-15 10:12:27
g4uss79 2019-06-15 09:14:47
Reading on the internet I saw a lot of people deleting items of a table using Ajax

Well if you don’t want your page to refresh then Ajax is the way to delete

oxbir 2019-06-15 10:31:06
Laravel 5.8 @can not working
oxbir 2019-06-15 10:32:06
I used @can but it get error
S 2019-06-15 10:40:11
g4uss79 2019-06-15 09:16:35
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?

yes you can.

S 2019-06-15 10:41:14
oxbir 2019-06-15 10:31:06
Laravel 5.8 @can not working

what error? @can still works on 5.8

ransikoo 2019-06-15 12:07:23
how to use @auth with table peoducer ?
StanleyMasinde 2019-06-15 12:09:26
Guy when asking a question please know that we are not in your heads. Give as much information as you can so that we can know what you want.
|