This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
1. Download and install Winebottler. https://winebottler.kronenberg.org/ | |
select Development version | |
it will install Wine, too. | |
!! Winebottler only works on Mojave or High Sierra !! | |
2. Install the downloaded dmg | |
3. Move Wine and Winebottler to the /Applications folder |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
public function articlesajax() | |
{ | |
$result = DB::table('articles') | |
->join('users', 'articles.user_id', '=', 'users.id') | |
->select('articles.id as id', 'articles.title as title', 'users.fullname', 'articles.created_at', 'articles.updated_at'); | |
return Datatables::of($result) | |
->add_column('edit', '<a href="/admin/article_edit/{{ $id }}"><i class="icon-list-alt"></i>Edit</a>') |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
$('#articles').dataTable( { | |
"bProcessing": true, | |
"bServerSide": true, | |
"sAjaxSource": "admin/articlesajax", | |
"aaSorting": [[ 3, "desc" ]], | |
"aoColumns": [ | |
{ 'sWidth': '60px' }, | |
{ 'sWidth': '130px', 'sClass': 'center' }, | |
{ 'sWidth': '180px', 'sClass': 'center' }, | |
{ 'sWidth': '60px', 'sClass': 'center' }, |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<table cellpadding="0" cellspacing="0" border="0" class="table table-striped table-condensed table-bordered" id="articles"> | |
<thead> | |
<tr> | |
<th>ID</th> | |
<th>Title</th> | |
<th>Author</th> | |
<th>Created At</th> | |
<th>Updated At</th> | |
<th colspan=”2”>Operations</th> | |
</tr> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<table cellpadding="0" cellspacing="0" border="0" class="table table-striped table-condensed table-bordered" id="articles"> | |
<thead> | |
<tr> | |
<th>ID</th> | |
<th>Title</th> | |
<th>Author</th> | |
<th>Created At</th> | |
<th>Updated At</th> | |
<th colspan=”2”>Operations</th> | |
</tr> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
public function articlesajax() | |
{ | |
$result = DB::table('articles') | |
->join('users', 'articles.user_id', '=', 'users.id') | |
->select('articles.id as id', 'articles.title as title', 'users.fullname', 'articles.created_at', 'articles.updated_at'); | |
return Datatables::of($result) | |
->add_column('edit', '<a href="/admin/article_edit/{{ $id }}"><i class="icon-list-alt"></i>Szerkesztés</a>') | |
->add_column('delete', '<a href="/admin/article_delete/{{ $id }}"><i class="icon-trash"></i>Törlés</a>') | |
->make(); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<table cellpadding="0" cellspacing="0" border="0" class="table table-striped table-condensed table-bordered" id="articles"> | |
<thead> | |
<tr> | |
<th>ID</th> | |
<th>Cím</th> | |
<th>Szerző</th> | |
<th>Létrehozva</th> | |
<th>Módosítva</th> | |
<th colspan=”2”>Műveletek</th> | |
</tr> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<table cellpadding="0" cellspacing="0" border="0" class="table table-striped table-condensed table-bordered" id="articles"> | |
<thead> | |
<tr> | |
<th>ID</th> | |
<th>Cím</th> | |
<th>Szerző</th> | |
<th>Létrehozva</th> | |
<th>Módosítva</th> | |
<th colspan=”2”>Műveletek</th> | |
</tr> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<table cellpadding="0" cellspacing="0" border="0" class="table table-striped table-condensed table-bordered" id="articles"> | |
<thead> | |
<tr> | |
<th>ID</th> | |
<th>Cím</th> | |
<th>Szerző</th> | |
<th>Létrehozva</th> | |
<th>Módosítva</th> | |
<th colspan=”2”>Műveletek</th> | |
</tr> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
class DatabaseSeeder extends Seeder { | |
/** | |
* Run the database seeds. | |
* | |
* @return void | |
*/ | |
public function run() |
NewerOlder