This file contains hidden or 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
| Route::get('/', 'MainController@index')->name('home')->middleware('auth'); | |
| Route::get('/files/{type}/{id?}', 'FileController@index'); | |
| Route::post('files/add', 'FileController@store'); | |
| Route::post('files/edit/{id}', 'FileController@edit'); | |
| Route::post('files/delete/{id}', 'FileController@destroy'); | |
| Auth::routes(); |
This file contains hidden or 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 up() | |
| { | |
| Schema::create('files', function (Blueprint $table) { | |
| $table->increments('id'); | |
| $table->string('name')->unique(); | |
| $table->string('type'); | |
| $table->string('extension'); | |
| $table->integer('user_id')->unsigned();; | |
| $table->timestamps(); |
This file contains hidden or 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
| window.Vue = require('vue'); | |
| Vue.component('pagination', require('./components/PaginationComponent.vue')); | |
| const app = new Vue({ | |
| el: '#app', | |
| data: { | |
| posts: {}, | |
| pagination: { |
This file contains hidden or 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="{{ app()->getLocale() }}"> | |
| <head> | |
| <meta charset="utf-8"> | |
| <meta http-equiv="X-UA-Compatible" content="IE=edge"> | |
| <meta name="viewport" content="width=device-width, initial-scale=1"> | |
| <meta name="csrf-token" content="{{ csrf_token() }}"> | |
| <title>Laravel</title> | |
| <link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/bulma/0.6.2/css/bulma.min.css"> | |
| <script defer src="https://use.fontawesome.com/releases/v5.0.0/js/all.js"></script> |
This file contains hidden or 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
| <template> | |
| <nav class="pagination is-centered is-rounded" role="navigation" aria-label="pagination"> | |
| <a class="pagination-previous" @click.prevent="changePage(1)" :disabled="pagination.current_page <= 1">First page</a> | |
| <a class="pagination-previous" @click.prevent="changePage(pagination.current_page - 1)" :disabled="pagination.current_page <= 1">Previous</a> | |
| <a class="pagination-next" @click.prevent="changePage(pagination.current_page + 1)" :disabled="pagination.current_page >= pagination.last_page">Next page</a> | |
| <a class="pagination-next" @click.prevent="changePage(pagination.last_page)" :disabled="pagination.current_page >= pagination.last_page">Last page</a> | |
| <ul class="pagination-list"> | |
| <li v-for="page in pages"> | |
| <a class="pagination-link" :class="isCurrentPage(page) ? 'is-current' : ''" @click.prevent="changePage(page)">{{ page }}</a> | |
| </li> |
This file contains hidden or 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
| <template> | |
| <div class="columns"> | |
| <div class="column is-half is-offset-one-quarter task-list"> | |
| <div class="box"> | |
| <h2 class="title">My tasks</h2> | |
| <hr> | |
| <div class="field has-addons"> | |
| <div class="control is-expanded"> | |
| <input class="input" type="text" placeholder="New task" v-model="task.body"> | |
| </div> |
This file contains hidden or 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
| Atom Settings |
NewerOlder