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
<div class="panel panel-default"> | |
<div class="panel-heading"> | |
<h3 class="panel-title"> | |
Add Task | |
</h3> | |
</div> | |
<div class="panel-body"> | |
<form id="add_task" style="display:none;"> | |
<input id="task_title" type="text" name="title" placeholder="Enter a task name" value=""/> | |
<button name="submit">Add Task</button> |
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
<!DOCTYPE html> | |
<html lang="en"> | |
<head> | |
<meta charset="utf-8"> | |
<meta http-equiv="X-UA-Compatible" content="IE=edge"> | |
<meta name="viewport" content="width=device-width, initial-scale=1"> | |
<title>To do List</title> | |
<!-- Bootstrap --> | |
<link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.1/css/bootstrap.min.css"> |
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 Task extends Eloquent | |
{ | |
protected $table = 'tasks'; | |
} |
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 artisan migrate |
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 | |
use Illuminate\Database\Schema\Blueprint; | |
use Illuminate\Database\Migrations\Migration; | |
class CreateTasksTable extends Migration { | |
public function up() | |
{ | |
Schema::create('tasks', function(Blueprint $table) |
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 artisan migrate:make create_tasks_table --table=tasks --create |
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
'mysql' => array( | |
'driver' => 'mysql', | |
'host' => 'localhost', | |
'database' => 'lucifier_todolist', | |
'username' => 'username', | |
'password' => 'password', | |
'charset' => 'utf8', | |
'collation' => 'utf8_unicode_ci', | |
'prefix' => '', | |
), |
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
composer create-project laravel/laravel todolist |
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
<html> | |
<head> | |
<link rel="stylesheet" type="text/css" media="all" href="../../css/base.css" /> | |
<script src="../../js/jquery.js"></script> | |
<script src="../../js/iframe.js"></script> | |
<script src="../../js/iframe/comment.js"></script> | |
<title>Clipper</title> | |
<style> | |
body{ | |
background-color:#2c2e3e !important; |
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
$ wget http://wkhtmltopdf.googlecode.com/files/wkhtmltopdf-0.9.9-static-amd64.tar.bz2 | |
$ tar xvjf wkhtmltopdf-0.9.9-static-amd64.tar.bz2 | |
$ mv wkhtmltopdf-amd64 /usr/bin/wkhtmltopdf | |
// In case you got the issue | |
// wkhtmltopdf: error while loading shared libraries: | |
// libfontconfig.so.1: cannot open shared object file: No such file or directory | |
// | |
// run the command below: | |
$ yum install urw-fonts libXext libXrender fontconfig libfontconfig.so.1 |