← prev | next →
zack6849 2019-08-08 17:39:29
could you run it again to humor me and let me know what happens?
zack6849 2019-08-08 17:39:42
it shouldnt be trying to re-create a table twice unless you’re calling it twice
richitorres 2019-08-08 20:16:12
anyone knows how to pass laravel localization to my react dom?
richitorres 2019-08-08 20:16:27
i builing forms with react js
richitorres 2019-08-08 20:16:43
but y dont know how passing my laravel locatization to my JSX
farshidrezaeii 2019-08-08 20:23:21
richitorres 2019-08-08 20:16:43
but y dont know how passing my laravel locatization to my JSX
by url
by storing in local storage
richitorres 2019-08-08 20:27:30
do you show me how to make or you have a some code about this problen?
richitorres 2019-08-08 20:27:35
problem*
farshidrezaeii 2019-08-08 20:29:54
example.com/en/articles/2
2019-08-09 04:25:21
https://www.facebook.com/groups/399121203936285/
Ameerul Adib MZA 2019-08-09 05:48:39
hi. currently i’m developing for a system using laravel 5.1 which the structure have been tempered by the previous developer. in the next roadmap of the system, i would need to develop API for the system. my question is, is it worth it to create another project using lumen just for the API development of the system?
Kvn_makwana 2019-08-09 09:51:40
Ameerul Adib MZA 2019-08-09 05:48:39
hi. currently i’m developing for a system using laravel 5.1 which the structure have been tempered by the previous developer. in the next roadmap of the system, i would need to develop API for the system. my question is, is it worth it to create another project using lumen just for the API development of the system?
No you can continue with recent project
Liph47 2019-08-09 11:59:09
hello to all, I need your help, I would like to know how in one function I can return several views..thanks
goodluckalltheway 2019-08-09 12:00:44
Return single view, in that single view, include the other views
Liph47 2019-08-09 12:07:36
goodluckalltheway 2019-08-09 12:00:44
Return single view, in that single view, include the other views
And the variables also?
goodluckalltheway 2019-08-09 12:15:20
Liph47 2019-08-09 12:07:36
And the variables also?

Yes. See example.
Liph47 2019-08-09 12:20:58
So I don’t need controller?
Liph47 2019-08-09 12:23:12

This is what I have, I want to use $classe in other view also but I don’t want to create another function to return another view
goodluckalltheway 2019-08-09 12:29:40
Liph47 2019-08-09 12:23:12
This is what I have, I want to use $classe in other view also but I don’t want to create another function to return another view

Okay, try this then
Liph47 2019-08-09 12:50:57
Liph47 2019-08-09 12:50:59
i have an error on the second line
goodluckalltheway 2019-08-09 13:14:16
You have assigned incorrectly
Liph47 2019-08-09 13:24:58
Ok
farshidrezaeii 2019-08-09 13:35:34
Liph47 2019-08-09 12:50:59
i have an error on the second line
$data=[‘int’ ]=…
is incorrect
try this
$data[‘int’ ] =…
Liph47 2019-08-09 13:47:19
goodluckalltheway 2019-08-09 12:29:40
Okay, try this then
Yes yes I do it, but excuse me, I want to know that, where I will put the @include..
goodluckalltheway 2019-08-09 13:58:11
Liph47 2019-08-09 13:47:19
Yes yes I do it, but excuse me, I want to know that, where I will put the @include..
On your main view, then @include subviews that you need on it.
https://laravel.com/docs/5.8/blade#including-sub-views
Laravel – The PHP Framework For Web Artisans –
LaravelLaravel is a PHP web application framework with expressive, elegant syntax. We’ve already laid the foundation — freeing you to create without sweating the small things.
Liph47 2019-08-09 14:07:21
Thank you very much
oxbir 2019-08-09 18:32:05
Each user comes in for registration. And it will enter the referral code marketer. And the user enters the marketing code. And it’s stored in the parent_id
oxbir 2019-08-09 18:32:25
I have added the use case (based on assumption of what I understand) for “And marketers can see how many people bought their code”
oxbir 2019-08-09 18:33:04
// Get the total number of orders
$orderCount = Order::count();
// Get the total number of orders of a user
$userOrderCount = $user->orders()->count();
// Include the number of orders in the user attributes
$user = User::withCount(‘orders’)->find($userId); // notice ‘order’ is, in fact orders() from the AppUser methods
// Include the number of orders in the parent attributes
$parent = User::withCount(‘orders’)->find($user->parent_id);
// Number of orders of the parent
$parentOrderCount = Order::where(‘user_id’, $user->parent_id)->count();
// Edit: As you commented, you also want to know “The marketers can see how many people bought their code”
// I’m assuming this is the number of children (I have added the relation in the model above)
$childrenCount = $user->children()->count()
N
oxbir 2019-08-09 18:33:39
I tested each but it did not work
oxbir 2019-08-10 07:55:43
WHAT IS THIS ERROR?
oxbir 2019-08-10 07:55:45
Object of class IlluminateDatabaseEloquentBuilder could not be converted to string
oxbir 2019-08-10 07:55:55
public function index ()
{
if (auth()->user()->level == ‘marketing’)
{
$orders = Order::with(‘user.id’);
}
else if (auth()->user()->level == ‘admin’)
{
$orders = Order::all();
}
return view(‘Admin.marketing.index’, compact(‘orders’));
}
oxbir 2019-08-10 07:56:22
oxbir 2019-08-10 07:55:55
public function index ()
{
if (auth()->user()->level == ‘marketing’)
{
$orders = Order::with(‘user.id’);
}
else if (auth()->user()->level == ‘admin’)
{
$orders = Order::all();
}
return view(‘Admin.marketing.index’, compact(‘orders’));
}
THIS IS MY SOURCES
zack6849 2019-08-10 08:16:30
Presumably user isn’t returning the feild, but the relationship
m 2019-08-10 08:19:37
What is error in this code?
public function index(){
$locale = App::getLocale();
$workColumn=$locale==’fa’?’work_fa’:’work_en’;
$nameColumn=$locale==’fa’?’name_fa’:’name_en’;
$describeColumn=$locale==’fa’?’describe_fa’:’describe_en’;
$cityColumn=$locale==’fa’?’city_fa’:’city_en’;
$addressColumn=$locale==’fa’?’address_fa’:’address_en’;
$selectPost=$this->ads->select([‘id’, ‘$workColumn, $nameCloumn ,$describeColumn,$cityColumn , $addressColumn])->get();
return view(‘admin.adss.index’,[‘ads’=>$selectPost]);
}
jeffzercreative 2019-08-10 08:20:54
zack6849 2019-08-08 17:36:29
i’d say because you’re using bigIncrements for the ids they should be bigintegers for the foreign keys
Not bigIncrements but unsignedBigIncrements. I’ve got this can this error when I was working and after my research, it try this and the migration done well.
oxbir 2019-08-10 08:23:09
zack6849 2019-08-10 08:16:30
Presumably user isn’t returning the feild, but the relationship
what’s the solution?
amablia 2019-08-10 12:35:57
zack6849 2019-08-08 17:22:54
“rental system”?
It’s product rent system, like house rent or vehicle rent
GauravGohil 2019-08-10 13:22:15
ajax login without page refresh in laravel
GauravGohil 2019-08-10 13:22:26
how to do it anyone know
2019-08-10 13:40:47
I want rendering full page from JSON file in php?
2019-08-10 13:41:14
Anybody give me a suggesstion
skys215 2019-08-10 13:41:21
GauravGohil 2019-08-10 13:22:15
ajax login without page refresh in laravel
What’s the problem
GauravGohil 2019-08-10 13:48:11
i dont know how to do it
GauravGohil 2019-08-10 13:48:21
so i want to know how can i do it
skys215 2019-08-10 15:05:58
just call login api
GauravGohil 2019-08-10 16:54:49
how
MatPk 2019-08-11 15:36:47
eli5 :
what means Html::style(‘css/css.css’);
and does it exist in laravel 5.8?
← prev | next →