Hi, is this a good way to register policies programmatically or there are better ways to do it ?
How to import categories in menu and submenu?
which one is best plugin to build chart in laravel?
Hello how can i load laravel project with https?
How can I implement that ?
Is it possible to make such website with laravel?
I wanted to introduce a shop site tutorial, can anyone introduce me?
Hello can anyone record our computer screen without our permission?
I figured it out using ratchet pawl: https://github.com/ratchetphp/Pawl
Asynchronous WebSocket client. Contribute to ratchetphp/Pawl development by creating an account on GitHub.
I have that running already
But I want to learn laravel comments box.

Hi, is this a good way to register policies programmatically or there are better ways to do it ?
I have two tables categories, knowledge_rooms. and I inastalled sluggable package, My laravel version is 5.8
categories table
public function up()
{
Schema::create(‘categories’, function (Blueprint $table) {
$table->bigIncrements(‘id’);
$table->string(‘name_fa’);
$table->integer(‘parent_id’);
$table->timestamps();
});
}
knowledge_rooms table
public function up()
{
Schema::create(‘knowledge_rooms’, function (Blueprint $table) {
$table->bigIncrements(‘id’);
$table->string(‘title’);
$table->string(‘lang’);
$table->string(‘slug’);
$table->bigInteger(‘user_id’)->unsigned();
$table->foreign(‘user_id’)->references(‘id’)->on(‘users’)->onDelete(‘cascade’);
$table->timestamps();
});
Schema::create(‘category_knowledge_room’, function (Blueprint $table) {
$table->bigInteger(‘category_id’)->unsigned();
$table->bigInteger(‘knowledge_room_id’)->unsigned();
$table->primary([‘category_id’, ‘knowledge_room_id’]);
$table->foreign(‘category_id’)->references(‘id’)->on(‘categories’)->onDelete(‘cascade’);
$table->foreign(‘knowledge_room_id’)->references(‘id’)->on(‘knowledge_rooms’)->onDelete(‘cascade’);
});
}
AppSeerviceProvider.php
public function boot()
{
view()->composer(‘*’, function($view) {
$view->with(‘menus’, Category::with(‘knowledgeRooms’)->whereParent_id(0)->get());
});
}
Category.php
public function getChild ()
{
return $this->hasMany(Category::class, ‘parent_id’, ‘id’);
}
public function knowledgeRooms()
{
return $this->belongsToMany(KnowledgeRoom::class);
}
header.blade.php
<div class=”collapse navbar-collapse” id=”navbarSupportedContent”>
<ul class=”navbar-nav ml-auto”>
@foreach($menus as $menu)
{{–@continue($menu->parent_id !=0)–}}
<li class=”nav-item dropdown”>
<a class=”nav-link dropdown-toggle” href=”#” id=”navbarDropdown” role=”button” data-toggle=”dropdown” aria-haspopup=”true” aria-expanded=”false”>
<i class=”fas {{ $menu->icon }} fa-2x”></i>
<span>{{ $menu->name_fa }}</span>
</a>
<div class=”dropdown-menu” aria-labelledby=”navbarDropdown”>
@foreach($menu as $submenu)
@continue($submenu->parent_id == 0)
@foreach($submenu->knowledgeRooms as $knowledgeRoom)
{{–@if($submenu->parent_id == $menu->id)–}}
<a class=”nav-link” href=”{{ $knowledgeRoom->path() }}”>
<span>{{ $submenu->name_fa }}</span>
</a>
{{—-}}
{{–<a class=”dropdown-item” href=”>–}}
{{–{{ $submenu->name_fa }}–}}
{{–</a>–}}
{{–@endforeach–}}
{{–@endif–}}
@endforeach
@endforeach
</div>
</li>
@endforeach
</ul>
</div>
web.php
Route::get(‘/knowledge-rooms/{knowledge-roomSlug}’, ‘KnowledgeRoomController@single’);
KnowledgeRoom.php
<?php
namespace App;
use IlluminateDatabaseEloquentModel;
use CviebrockEloquentSluggableSluggable;
class KnowledgeRoom extends Model
{
use Sluggable;
/**
* Return the sluggable configuration array for this model.
*
* @return array
*/
public function sluggable
{
return [
‘slug’ => [
‘source’ => ‘title’
]
];
}
public function path()
{
return “/knowledge-rooms/$this->slug”;
}
public function categories()
{
return $this->belongsToMany(Category::class);
}
public function user()
{
return $this->belongsTo(User::class);
}
}
Give an example of this code and I will solve my problem in the future.
I get this error
[error][1]
[1]: https://i.stack.imgur.com/z5FX7.png
Share your code with pastebin . com
I want to create a megamenu And I want to import categories to the menu and sub-menu for link.
I have two tables categories, knowledge_rooms. and I inastalled sluggable package, My laravel version…
Is it a quickway to integrate dicomviewer to laravel app
( More description : radiologist files that doctor see the patient picture or situation)
Sometimes it’s a single one dimension file
In some cases it has many layers and it’s in 3d
πππππ€©π€©ππΎππΎπΏ
https://gist.github.com/nimaamiri92/0d0112204927942e568d8d583cc99913
Throw error with Laravel validation error format. GitHub Gist: instantly share code, notes, and snippets.



In local i request to an external api and everthing is ok
In host Request to api and responses is
cURL Error #:SSL certificate problem: certificate has expired
whats wrong ?!
In local i request to an external api and everthing is ok
In host Request to api and responses is
cURL Error #:SSL certificate problem: certificate has expired
whats wrong ?!
https://stackoverflow.com/questions/731117/error-using-php-curl-with-ssl-certificates
I’m trying to write a PHP script using cURL that can authorize a user through a page that uses an SSL certificate, in addition to username and password, and I can’t seem to get past the SSL cert st…
With http my css are load
But with https css and js not loaded


how i convert this in collection
you can use the collect($array) function
Location- Gomti Nagar (Vibhuti Nagar), Lucknow.
Required Experience: 2+years.
Those who can join immediately or less than 15 days are preferred.
Job Description:
Strong knowledge of the Laravel Framework and core PHP.
Understanding the fully synchronous behavior of PHP.
Understanding of MVC design patterns.
Basic understanding of front-end technologies, such as JavaScript, HTML5, and CSS3 Knowledge of object-oriented PHP programming.
Understanding accessibility and security compliance {{Depending on the specific project}}
Understanding fundamental design principles behind a scalable application.
User authentication and authorization between multiple systems, servers, and environments.
Creating database schemas that represent and support business processes.
Familiarity with SQL/NoSQL databases and their declarative query languages.
Proficient understanding of code versioning tools, such as Git.
laravel.com
I want to make an article with code snippet,
How can I implement that ?
Is it possible to make such website with laravel??
Is it possible to make such website with laravel??
Yes
We focuses on technology, design, strategy, & support. We have been digital experiences for over + years and we believe in building comprehensive solutions that adapt to real world business situations.
Article.php
public function path()
{
return “/articles/$this->slug”;
}
AppServiceProvider.php
public function boot()
{
view()->composer(‘*’, function($view) {
$view->with(‘menus’, Category::with([‘articles’, ‘children.articles’])->where(‘parent_id’, 0)->get());
});
}
Category.php
public function children ()
{
return $this->hasMany(Category::class, ‘parent_id’, ‘id’);
}
public function articles()
{
return $this->belongsToMany(Article::class);
}
header.blade.php
{{–<ul>–}}
@foreach($menus as $menu)
{{–<li>–}}
{{– $menu->name_fa –}}
{{–<ul>–}}
@foreach ($menu->children as $child)
@if ($child)
{{ dd($child) }}
@foreach ($child->articles as $article)
{{–<li>–}}
{{–<a href=”{{ $article->path() }}”>–}}
{{– $child->name_fa –}}
{{–</a>–}}
{{–</li>–}}
@endforeach
@endif
@endforeach
{{–</ul>–}}
{{–</li>–}}
@endforeach
{{–</ul>–}}
I see….
[![dd][1]][1]
[1]: https://i.stack.imgur.com/VVS10.png
For only $20, jahanzaibtariq2 will clone, migrate transfer or move wordpress website to another host or subdomain. | Hi,Are you looking tomigrate wordpress website? then I am here toclone, migrate, transfer your wordpress site.Services that I am offering in this gig,Clone or Duplicateyour | On Fiverr
And there is a possibility of using heatmaps by which they can track user movements accross the page
Suprise them. Be nude.
You can use another monitor connected with your system and ask someone to paste the answers and then you can use