Someboby know how to fill a field of a table with this package using the user authentcation?

|
2020-07-18 15:14:00
laravel_discuss-45321.jpg
This is my Controller
sahilbalgotra 2020-07-18 15:14:28
flyingdragons 2020-07-18 15:13:26
But still I am not satisfied with my website performance. So I am planning to move to AMP which will be dam faster for mobile devices

Amp is faster but not gud in adds personalization

2020-07-18 15:14:31
laravel_discuss-45323.jpg
Output of that code
2020-07-18 15:15:01
Admin_gst column is not showing
2020-07-18 15:15:25
Can any one help to sort out this issue
flyingdragons 2020-07-18 15:15:29
sahilbalgotra 2020-07-18 15:14:28
Amp is faster but not gud in adds personalization

Oh! Didnt knew on that. Thank you for the information. Started learning on it from yesterday.

ForeingNavarro 2020-07-18 15:15:57
So whats up guys
flyingdragons 2020-07-18 15:16:01
2020-07-18 15:14:00
This is my Controller

Please show your model code

2020-07-18 15:16:41
laravel_discuss-45329.jpg

ForeingNavarro 2020-07-18 15:17:14
Someone here have experience about maatwebsite excel package for laravel 7?
2020-07-18 15:20:28
2020-07-18 15:08:59
Laravel throw error refused to connect when i try url with https

Anyone can help?

ForeingNavarro 2020-07-18 15:20:32
Someboby know how to fill a field of a table with this package using the user authentcation? You importing or uploading a excel file
flyingdragons 2020-07-18 15:20:54
2020-07-18 15:14:00
This is my Controller

What do you get after running the following query

User::whereIsNotNull(‘role)->with(‘admin’)->get();

flyingdragons 2020-07-18 15:21:14
Later you can use pluck to pull specific columns
2020-07-18 15:22:04
flyingdragons 2020-07-18 15:20:54
What do you get after running the following query

User::whereIsNotNull(‘role)->with(‘admin’)->get();

When using this Query total data of the Two Tables are shown

flyingdragons 2020-07-18 15:22:40
flyingdragons 2020-07-18 15:20:54
What do you get after running the following query

User::whereIsNotNull(‘role)->with(‘admin’)->get();

User::whereNotNull(‘role)->with(‘admin’)->get();

2020-07-18 15:23:58
laravel_discuss-45338.jpg

2020-07-18 15:26:13
flyingdragons 2020-07-18 15:21:14
Later you can use pluck to pull specific columns

laravel_discuss-45339.jpg
While using Pluck its shows like this

flyingdragons 2020-07-18 15:27:39
Can you please show me your code how are you to pluck for admin_gst
2020-07-18 15:32:05
laravel_discuss-45341.jpg

2020-07-18 16:04:51
Hi every one I has question
How save data in different table ?
Note I have relastionship between models
2020-07-18 16:06:41
2020-07-18 16:04:51
Hi every one I has question
How save data in different table ?
Note I have relastionship between models

You need to use Joins

web_artisan77 2020-07-18 17:11:06
how can I add two weeks from now using Carbon? I want my token to expire in two weeks and I have to store that future date
Siberfx 2020-07-18 17:25:35
now()->addWeeks(2);
$variable->created_at->addWeeks(2);
web_artisan77 2020-07-18 18:31:41
Siberfx 2020-07-18 17:25:35
now()->addWeeks(2);
$variable->created_at->addWeeks(2);

thanksπŸ‘Œ

Siberfx 2020-07-18 18:31:48
welcome
Kaveri 2020-07-18 19:03:00
βœ‹
Kaveri 2020-07-18 19:03:39
Anyone have laravel courses from scratch
Siberfx 2020-07-18 19:04:02
check out youtube for coder’s tape its a good begining
Avinash 2020-07-18 19:05:05
For courses on Udemy I suggest https://bit.ly/laravel-2020

Laravel Framework 2020 Complete Professional Project CourseUdemy
Laravel Framework Course for Beginner to Advance with Complete Online News Portal Website Project
Avinash 2020-07-18 19:05:19
and this https://bit.ly/master-laravel

Master Laravel 7 While Creating an Online Shop with LaravelUdemy
Become a Laravel expert creating an eShop from scratch practicing all the Laravel features you learn in the process.
oxbir 2020-07-18 21:08:10
How to import categories in menu and submenu?

I want to create a megamenu And I want to import categories to the menu and sub-menu for link.

I have a categories table.

oxbir 2020-07-18 21:08:38
public function up()
{
Schema::create(‘categories’, function (Blueprint $table) {
$table->bigIncrements(‘id’);
$table->string(‘name_fa’);
$table->string(‘name_en’);
$table->integer(‘parent_id’);
$table->string(‘icon’)->nullable();
$table->timestamps();
});
}
oxbir 2020-07-18 21:08:56
AppSeriveceProvider.php
oxbir 2020-07-18 21:09:41
public function register()
{
Schema::defaultStringLength(191);
view()->composer(‘*’, function($view) {
$view->with(‘menus’, Category::whereParent_id(‘0’)->get());
});
}
oxbir 2020-07-18 21:09:54
header.blade.php
oxbir 2020-07-18 21:10:41
<ul class=”navbar-nav mr-auto”>
@foreach($menus as $menu)
<li class=”nav-item dropdown”>
<a class=”nav-link dropdown-toggle” data-toggle=”dropdown” href=”#” role=”button” aria-haspopup=”true” aria-expanded=”false”>
<i class=”fas {{ $menu->icon }} fa-2x”></i>
<span>{{ $menu->name_fa }}</span>
</a>
<div class=”dropdown-menu w-100″>
<div class=”px-0 container”>
<div class=”row”>
@foreach($menu->getChild as $submenu)
<div class=”col-md-4″>
<a class=”dropdown-item text-right” href=”#”>
{{ $submenu->name_fa }}
</a>
</div>
@endforeach
</div>
</div>
</div>
</li>
@endforeach
</ul>
oxbir 2020-07-18 21:13:01
I replaced below codes , But I see blanks sub menu in my menu.
web_artisan77 2020-07-18 22:14:46
Is a good idea to store the api token in the database?
Siberfx 2020-07-18 22:17:13
Why not
Siberfx 2020-07-18 22:17:52
You store everything there, so you dont worry about secure or not, then same issue for the tokens πŸ™‚ they are as safe as the rest of the data in sql
web_artisan77 2020-07-18 22:32:41
I think is expensive doing that in case you have a million requests
Siberfx 2020-07-18 22:34:25
So cache is for that reasons. Or session. To not to make it expensive
web_artisan77 2020-07-18 22:37:26
Well idk… I think it’s just easier to decode the JWT with the private key instead of query the database
Siberfx 2020-07-18 22:38:42
in some cases, I always keep some data stored. there are bunch of ways to get rid of it.
2020-07-19 00:06:06
How i can make print order directly in laravel ?!
alejandrostivanello 2020-07-19 00:26:36
2020-07-19 00:06:06
How i can make print order directly in laravel ?!

Programming (?)

2020-07-19 00:28:07
I main i want print something directly without browser print preview
2020-07-19 00:28:51
* mean
Siberfx 2020-07-19 00:30:13
Have you ever searched “php print without preview” ?
|