├── .dockerignore
├── .env.example
├── .gitattributes
├── .gitignore
├── Dockerfile
├── app
├── Console
│ ├── Commands
│ │ └── Inspire.php
│ └── Kernel.php
├── Events
│ └── Event.php
├── Exceptions
│ └── Handler.php
├── Http
│ ├── Controllers
│ │ ├── AccountController.php
│ │ ├── Auth
│ │ │ ├── AuthController.php
│ │ │ └── PasswordController.php
│ │ ├── AuthorController.php
│ │ ├── BaseController.php
│ │ ├── CategoryController.php
│ │ ├── Controller.php
│ │ ├── HomeController.php
│ │ ├── LoginController.php
│ │ ├── ProjectController.php
│ │ ├── StatsController.php
│ │ └── WelcomeController.php
│ ├── Kernel.php
│ ├── Middleware
│ │ ├── Authenticate.php
│ │ ├── AutoLanguage.php
│ │ ├── RedirectIfAuthenticated.php
│ │ └── VerifyCsrfToken.php
│ ├── Requests
│ │ └── Request.php
│ └── routes.php
├── Jobs
│ └── Command.php
├── Listeners
│ ├── Commands
│ │ └── .gitkeep
│ └── Events
│ │ └── .gitkeep
├── Models
│ ├── Author.php
│ ├── Category.php
│ ├── Ndless.php
│ ├── Project.php
│ └── User.php
├── Providers
│ ├── AppServiceProvider.php
│ ├── BusServiceProvider.php
│ ├── ConfigServiceProvider.php
│ ├── EventServiceProvider.php
│ └── RouteServiceProvider.php
├── Services
│ └── Registrar.php
└── User.php
├── artisan
├── bootstrap
├── app.php
├── autoload.php
└── cache
│ └── .gitignore
├── composer.json
├── composer.lock
├── config
├── app.php
├── auth.php
├── cache.php
├── compile.php
├── database.php
├── filesystems.php
├── mail.php
├── queue.php
├── services.php
├── session.php
└── view.php
├── database
├── .gitignore
├── migrations
│ ├── .gitkeep
│ ├── 2014_03_18_171300_create_authors_table.php
│ ├── 2014_03_18_171423_create_users_table.php
│ ├── 2014_03_18_172218_create_projects_table.php
│ ├── 2014_03_18_173747_create_ndless_table.php
│ ├── 2014_03_18_173911_create_compatibility_table.php
│ ├── 2014_03_18_174825_create_categories_table.php
│ ├── 2014_03_18_175035_create_project_categories_table.php
│ ├── 2014_03_18_175906_create_project_authors_table.php
│ ├── 2014_03_22_182951_users_add_editor_admin_columns.php
│ ├── 2014_04_11_140118_projects_on_delete_changes.php
│ ├── 2014_04_11_140733_project_authors_on_delete_changes.php
│ ├── 2014_05_24_183352_projects_add_featured_column.php
│ ├── 2014_05_24_184232_projects_add_screenshot_column.php
│ ├── 2014_08_23_160223_users_add_remember_token_column.php
│ ├── 2014_09_15_132451_projects_remove_screenshot_column.php
│ └── 2016_01_06_193557_ndless_add_deprecated_column.php
└── seeds
│ ├── .gitkeep
│ └── DatabaseSeeder.php
├── database_dump.sql
├── docker
├── default
└── supervisord.conf
├── gulpfile.js
├── package.json
├── phpspec.yml
├── phpunit.xml
├── public
├── .htaccess
├── css
│ ├── login.less
│ └── login.min.css
├── favicon.ico
├── favicon.png
├── img
│ └── screenshot
│ │ └── .gitkeep
├── index.php
├── packages
│ └── .gitkeep
└── robots.txt
├── readme.md
├── resources
├── assets
│ ├── js
│ │ ├── clickcounter.js
│ │ ├── projectlist.js
│ │ └── stats.js
│ └── less
│ │ └── app.less
├── lang
│ ├── de
│ │ ├── account.php
│ │ ├── authors.php
│ │ ├── categories.php
│ │ ├── login.php
│ │ ├── master.php
│ │ ├── pagination.php
│ │ ├── projects.php
│ │ ├── reminders.php
│ │ ├── stats.php
│ │ └── validation.php
│ ├── en
│ │ ├── account.php
│ │ ├── authors.php
│ │ ├── categories.php
│ │ ├── login.php
│ │ ├── master.php
│ │ ├── pagination.php
│ │ ├── passwords.php
│ │ ├── projects.php
│ │ ├── reminders.php
│ │ ├── stats.php
│ │ └── validation.php
│ └── fr
│ │ ├── account.php
│ │ ├── authors.php
│ │ ├── categories.php
│ │ ├── login.php
│ │ ├── master.php
│ │ ├── pagination.php
│ │ ├── projects.php
│ │ ├── reminders.php
│ │ ├── stats.php
│ │ └── validation.php
└── views
│ ├── account.blade.php
│ ├── app.blade.php
│ ├── auth
│ ├── login.blade.php
│ ├── password.blade.php
│ ├── register.blade.php
│ └── reset.blade.php
│ ├── author
│ ├── create.blade.php
│ ├── edit.blade.php
│ ├── index.blade.php
│ ├── partials
│ │ └── list.blade.php
│ └── show.blade.php
│ ├── category
│ └── show.blade.php
│ ├── emails
│ ├── auth
│ │ └── reminder.blade.php
│ └── password.blade.php
│ ├── errors
│ └── 503.blade.php
│ ├── hello.php
│ ├── home.blade.php
│ ├── layouts
│ └── master.blade.php
│ ├── login.blade.php
│ ├── project
│ ├── create.blade.php
│ ├── edit.blade.php
│ ├── index.blade.php
│ ├── partials
│ │ ├── controls.blade.php
│ │ ├── list.blade.php
│ │ └── row.blade.php
│ └── show.blade.php
│ ├── stats.blade.php
│ ├── vendor
│ └── .gitkeep
│ └── welcome.blade.php
├── server.php
├── storage
├── .gitignore
├── app
│ └── .gitignore
├── framework
│ ├── .gitignore
│ ├── cache
│ │ └── .gitignore
│ ├── sessions
│ │ └── .gitignore
│ └── views
│ │ └── .gitignore
└── logs
│ └── .gitignore
└── tests
├── ExampleTest.php
└── TestCase.php
/.dockerignore:
--------------------------------------------------------------------------------
1 | node_modules
2 | composer.phar
--------------------------------------------------------------------------------
/.env.example:
--------------------------------------------------------------------------------
1 | APP_ENV=local
2 | APP_DEBUG=true
3 | APP_KEY=SomeRandomString
4 | APP_URL=http://localhost
5 |
6 | DB_HOST=localhost
7 | DB_DATABASE=homestead
8 | DB_USERNAME=homestead
9 | DB_PASSWORD=secret
10 |
11 | CACHE_DRIVER=file
12 | SESSION_DRIVER=file
13 | QUEUE_DRIVER=sync
14 |
15 | MAIL_DRIVER=smtp
16 | MAIL_HOST=mailtrap.io
17 | MAIL_PORT=2525
18 | MAIL_USERNAME=null
19 | MAIL_PASSWORD=null
20 |
--------------------------------------------------------------------------------
/.gitattributes:
--------------------------------------------------------------------------------
1 | * text=auto
2 | *.css linguist-vendored
3 | *.less linguist-vendored
4 |
--------------------------------------------------------------------------------
/.gitignore:
--------------------------------------------------------------------------------
1 | /vendor
2 | /node_modules
3 | /.idea
4 | .env
5 |
--------------------------------------------------------------------------------
/Dockerfile:
--------------------------------------------------------------------------------
1 | FROM php:7.0-fpm
2 | RUN apt-get update -y && apt-get install -y openssl zip unzip git libmcrypt-dev supervisor nginx
3 | RUN curl -sS https://getcomposer.org/installer | php -- --install-dir=/usr/local/bin --filename=composer
4 | RUN docker-php-ext-install pdo mbstring mcrypt pdo_mysql
5 | WORKDIR /var/www/html
6 | COPY . /var/www/html
7 | RUN chown -R www-data:www-data storage/ bootstrap/cache/
8 | RUN composer install
9 |
10 | COPY docker/supervisord.conf /etc/supervisor/supervisord.conf
11 | COPY docker/default /etc/nginx/sites-available/default
12 |
13 | VOLUME /var/www/html/public/img/screenshot
14 |
15 | ENTRYPOINT ["supervisord", "-c", "/etc/supervisor/supervisord.conf"]
16 |
--------------------------------------------------------------------------------
/app/Console/Commands/Inspire.php:
--------------------------------------------------------------------------------
1 | comment(PHP_EOL.Inspiring::quote().PHP_EOL);
30 | }
31 |
32 | }
33 |
--------------------------------------------------------------------------------
/app/Console/Kernel.php:
--------------------------------------------------------------------------------
1 | command('inspire')
26 | ->hourly();
27 | }
28 |
29 | }
30 |
--------------------------------------------------------------------------------
/app/Events/Event.php:
--------------------------------------------------------------------------------
1 | middleware('auth', array(
7 | 'on' => 'postIndex'
8 | ));
9 | }
10 |
11 | public function getIndex()
12 | {
13 | return View::make('account');
14 | }
15 |
16 | public function postIndex()
17 | {
18 | if(Input::has('changepw'))
19 | {
20 | $rules = array(
21 | 'oldPass' => 'required',
22 | 'newPass1' => 'required|min:8',
23 | 'newPass2' => 'required|min:8|same:newPass1'
24 | );
25 |
26 | $input = Input::all();
27 | $validator = Validator::make($input,$rules);
28 |
29 | if($validator->fails())
30 | {
31 | return Redirect::to('/account')->withErrors($validator);
32 | }
33 |
34 | $user = Auth::user();
35 |
36 | if(!Auth::validate(array('name' => $user->name, 'password' => $input['oldPass'])))
37 | {
38 | return Redirect::to('/account')->withErrors(array('message' => 'You have entered a wrong password.'));
39 | }
40 |
41 | $user->password = Hash::make($input['newPass2']);
42 |
43 | $user->save();
44 |
45 | return Redirect::to('/account');
46 | }
47 | elseif(Input::has('removeacc'))
48 | {
49 | $rules = array(
50 | 'remPass' => 'required|min:8'
51 | );
52 |
53 | $input = Input::all();
54 | $validator = Validator::make($input,$rules);
55 |
56 | if($validator->fails())
57 | {
58 | return Redirect::to('/account')->withErrors($validator);
59 | }
60 |
61 | $user = Auth::user();
62 |
63 | if(!Auth::validate(array('name' => $user->name, 'password' => $input['remPass'])))
64 | {
65 | return Redirect::to('/account')->withErrors(array('message' => 'You have entered a wrong password.'));
66 | }
67 |
68 | $user->delete();
69 |
70 | Auth::logout();
71 |
72 | return Redirect::to('/');
73 | }
74 | }
75 | }
76 |
77 | ?>
78 |
--------------------------------------------------------------------------------
/app/Http/Controllers/Auth/AuthController.php:
--------------------------------------------------------------------------------
1 | auth = $auth;
33 | $this->registrar = $registrar;
34 |
35 | $this->middleware('guest', ['except' => 'getLogout']);
36 | }
37 |
38 | }
39 |
--------------------------------------------------------------------------------
/app/Http/Controllers/Auth/PasswordController.php:
--------------------------------------------------------------------------------
1 | auth = $auth;
33 | $this->passwords = $passwords;
34 |
35 | $this->middleware('guest');
36 | }
37 |
38 | }
39 |
--------------------------------------------------------------------------------
/app/Http/Controllers/AuthorController.php:
--------------------------------------------------------------------------------
1 | middleware('auth:editor', array(
8 | 'except' => array(
9 | 'index',
10 | 'show'
11 | )
12 | ));
13 | }
14 |
15 | /**
16 | * Display a listing of the resource.
17 | *
18 | * @return Response
19 | */
20 | public function index()
21 | {
22 | return View::make('author.index')
23 | ->withAuthors(
24 | DB::table('authors')
25 | ->select(DB::raw('id, count(project) as count, name'))
26 | ->join('project_authors', 'project_authors.author', '=', 'authors.id')
27 | ->groupBy('author')
28 | ->orderBy('name')
29 | ->get()
30 | );
31 | }
32 |
33 | /**
34 | * Show the form for creating a new resource.
35 | *
36 | * @return Response
37 | */
38 | public function create()
39 | {
40 | return View::make('author.create');
41 | }
42 |
43 | /**
44 | * Store a newly created resource in storage.
45 | *
46 | * @return Response
47 | */
48 | public function store()
49 | {
50 | $rules = array(
51 | 'name' => 'required'
52 | );
53 |
54 | $input = Input::all();
55 | $validator = Validator::make($input,$rules);
56 |
57 | if($validator->fails())
58 | {
59 | return Redirect::to("/authors/create")->withErrors($validator)->withInput();
60 | }
61 |
62 | $author = new Author;
63 |
64 | $author->name = $input['name'];
65 |
66 | $author->save();
67 |
68 | return Redirect::to("/authors/{$author->id}");
69 | }
70 |
71 | /**
72 | * Display the specified resource.
73 | *
74 | * @param int $id
75 | * @return Response
76 | */
77 | public function show($id)
78 | {
79 | return View::make('author.show')
80 | ->withAuthor(
81 | DB::table('authors')
82 | ->select(DB::raw('count(project) as count, name, id'))
83 | ->where('id', '=', $id)
84 | ->join('project_authors', 'project_authors.author', '=', 'authors.id')
85 | ->first()
86 | )
87 | ->withProjects(
88 | Author::with('projects', 'projects.categories', 'projects.versions', 'projects.authors')->findOrFail($id)->projects->sortBy(function($project) {
89 | return strtolower($project->name);
90 | })
91 | );
92 | }
93 |
94 | /**
95 | * Show the form for editing the specified resource.
96 | *
97 | * @param int $id
98 | * @return Response
99 | */
100 | public function edit($id)
101 | {
102 | return View::make('author.edit')
103 | ->withAuthor(
104 | Author::findOrFail($id)
105 | );
106 | }
107 |
108 | /**
109 | * Update the specified resource in storage.
110 | *
111 | * @param int $id
112 | * @return Response
113 | */
114 | public function update($id)
115 | {
116 | $rules = array(
117 | 'name' => 'required'
118 | );
119 |
120 | $input = Input::all();
121 | $validator = Validator::make($input,$rules);
122 |
123 | if($validator->fails())
124 | {
125 | return Redirect::to("/authors/$id")->withErrors($validator);
126 | }
127 |
128 | $author = Author::findOrFail($id);
129 |
130 | $author->name = $input['name'];
131 |
132 | $author->save();
133 |
134 | return Redirect::to("/authors/{$author->id}");
135 | }
136 |
137 | /**
138 | * Remove the specified resource from storage.
139 | *
140 | * @param int $id
141 | * @return Response
142 | */
143 | public function destroy($id)
144 | {
145 | Author::destroy($id);
146 |
147 | return Redirect::to('/authors');
148 | }
149 |
150 | }
--------------------------------------------------------------------------------
/app/Http/Controllers/BaseController.php:
--------------------------------------------------------------------------------
1 | layout))
13 | {
14 | $this->layout = View::make($this->layout);
15 | }
16 | }
17 |
18 | }
--------------------------------------------------------------------------------
/app/Http/Controllers/CategoryController.php:
--------------------------------------------------------------------------------
1 | withCategory(
15 | DB::table('categories')
16 | ->select(DB::raw('count(project) as count, name, id'))
17 | ->where('id', '=', $id)
18 | ->join('project_categories', 'project_categories.category', '=', 'categories.id')
19 | ->first()
20 | )
21 | ->withProjects(
22 | Category::with('projects.authors', 'projects.versions', 'projects.categories')->findOrFail($id)->projects->sortBy(function($project) {
23 | return strtolower($project->name);
24 | })
25 | );
26 | }
27 |
28 |
29 | }
30 |
--------------------------------------------------------------------------------
/app/Http/Controllers/Controller.php:
--------------------------------------------------------------------------------
1 | withNavbar(false);
7 | }
8 |
9 | public function postIndex()
10 | {
11 | $rules = array(
12 | 'username' => 'required|alpha_dash',
13 | 'password' => 'required|min:8'
14 | );
15 |
16 | $input = Input::all();
17 | $validator = Validator::make($input,$rules);
18 |
19 | $validator->sometimes('username', 'unique:users,name', function($input) {
20 | return $input->action == 'register';
21 | });
22 |
23 | if($validator->fails())
24 | {
25 | return Redirect::to('login')->withErrors($validator);
26 | }
27 |
28 | if($input['action'] == 'login')
29 | {
30 | if(Auth::attempt(array(
31 | 'name' => $input['username'],
32 | 'password' => $input['password']
33 | ), Input::has('remember') ? true : false)) {
34 | return Redirect::to('/');
35 | }
36 | else {
37 | return Redirect::to('login')->withErrors(array('message' => Lang::get('login.error')));
38 | }
39 | }
40 | elseif($input['action'] == 'register')
41 | {
42 | $user = new User;
43 | $user->name = $input['username'];
44 | $user->password = Hash::make($input['password']);
45 | $user->save();
46 | Auth::login($user);
47 | return Redirect::intended('/');
48 | }
49 | }
50 | }
--------------------------------------------------------------------------------
/app/Http/Controllers/StatsController.php:
--------------------------------------------------------------------------------
1 | array(
8 | 'countAuthors' => DB::table('authors')->count(),
9 | 'countProjects' => DB::table('projects')->count(),
10 | 'countClicks' => DB::table('projects')->sum('clicks'),
11 | 'countCx' => DB::table('projects')->where('cx',1)->count(),
12 | 'countClassic' => DB::table('projects')->where('classic',1)->count(),
13 | 'comp' => DB::table('compatibility')
14 | ->join('ndless', 'compatibility.version', '=', 'ndless.id')
15 | ->groupBy('compatibility.version')
16 | ->orderBy('version', 'DESC')
17 | ->select(DB::raw('count(project) as count, ndless.version as version'))
18 | ->get(),
19 | 'author' => DB::table('project_authors')
20 | ->join('authors', 'author', '=', 'id')
21 | ->groupBy('name')
22 | ->orderBy('count', 'DESC')
23 | ->select(DB::raw('count(project) as count, name'))
24 | ->take(10)
25 | ->get()
26 | )
27 | ));
28 | }
29 | }
--------------------------------------------------------------------------------
/app/Http/Controllers/WelcomeController.php:
--------------------------------------------------------------------------------
1 | middleware('guest');
24 | }
25 |
26 | /**
27 | * Show the application welcome screen to the user.
28 | *
29 | * @return Response
30 | */
31 | public function index()
32 | {
33 | return view('welcome');
34 | }
35 |
36 | }
37 |
--------------------------------------------------------------------------------
/app/Http/Kernel.php:
--------------------------------------------------------------------------------
1 | 'App\Http\Middleware\Authenticate',
28 | 'auth.basic' => 'Illuminate\Auth\Middleware\AuthenticateWithBasicAuth',
29 | 'guest' => 'App\Http\Middleware\RedirectIfAuthenticated',
30 | 'csrf' => 'App\Http\Middleware\VerifyCsrfToken',
31 | ];
32 |
33 | }
34 |
--------------------------------------------------------------------------------
/app/Http/Middleware/Authenticate.php:
--------------------------------------------------------------------------------
1 | auth = $auth;
24 | }
25 |
26 | /**
27 | * Handle an incoming request.
28 | *
29 | * @param \Illuminate\Http\Request $request
30 | * @param \Closure $next
31 | * @return mixed
32 | */
33 | public function handle($request, Closure $next, $editor = '')
34 | {
35 | if ($this->auth->guest() || ($editor == 'editor' && !$this->auth->user()->editor))
36 | {
37 | if ($request->ajax())
38 | {
39 | return response('Unauthorized.', 401);
40 | }
41 | else
42 | {
43 | return redirect()->guest('login');
44 | }
45 | }
46 |
47 | return $next($request);
48 | }
49 |
50 | }
51 |
--------------------------------------------------------------------------------
/app/Http/Middleware/AutoLanguage.php:
--------------------------------------------------------------------------------
1 | segment(1);
17 | $session_lang = session()->get('language');
18 | $browser_lang = substr($request->server('HTTP_ACCEPT_LANGUAGE'), 0, 2);
19 |
20 | if(!empty($url_lang) && in_array($url_lang, config()->get('app.languages')))
21 | {
22 | if($url_lang != $session_lang)
23 | session()->put('language',$url_lang);
24 |
25 | app()->setLocale($url_lang);
26 | }
27 | else if(!empty($session_lang) && in_array($session_lang, config()->get('app.languages')))
28 | {
29 | app()->setLocale($session_lang);
30 | }
31 | else if(!empty($browser_lang) AND in_array($browser_lang, config()->get('app.languages')))
32 | {
33 | if($browser_lang != $session_lang)
34 | session()->put('language',$browser_lang);
35 |
36 | app()->setLocale($browser_lang);
37 | }
38 | else
39 | {
40 | app()->setLocale(config()->get('app.locale'));
41 | }
42 |
43 | return $next($request);
44 | }
45 |
46 | }
47 |
--------------------------------------------------------------------------------
/app/Http/Middleware/RedirectIfAuthenticated.php:
--------------------------------------------------------------------------------
1 | auth = $auth;
25 | }
26 |
27 | /**
28 | * Handle an incoming request.
29 | *
30 | * @param \Illuminate\Http\Request $request
31 | * @param \Closure $next
32 | * @return mixed
33 | */
34 | public function handle($request, Closure $next)
35 | {
36 | if ($this->auth->check())
37 | {
38 | return new RedirectResponse(url('/home'));
39 | }
40 |
41 | return $next($request);
42 | }
43 |
44 | }
45 |
--------------------------------------------------------------------------------
/app/Http/Middleware/VerifyCsrfToken.php:
--------------------------------------------------------------------------------
1 | 'csrf', function()
26 | {
27 | Auth::logout();
28 | return Redirect::to('/');
29 | }));
30 |
31 | Route::get('impressum', function(){
32 | return View::make('impressum');
33 | });
34 |
35 | Route::get('projects/{id}/click', 'ProjectController@click');
36 |
37 | Route::controller('login','LoginController');
38 | Route::controller('account','AccountController');
39 | Route::controller('stats','StatsController');
40 |
41 | Route::resource('projects','ProjectController');
42 | Route::resource('authors','AuthorController');
43 | Route::resource('categories','CategoryController');
44 |
--------------------------------------------------------------------------------
/app/Jobs/Command.php:
--------------------------------------------------------------------------------
1 | belongsToMany('Project','project_authors','author','project');
9 | }
10 | }
--------------------------------------------------------------------------------
/app/Models/Category.php:
--------------------------------------------------------------------------------
1 | belongsToMany('Project','project_categories','category','project');
7 | }
8 | }
--------------------------------------------------------------------------------
/app/Models/Ndless.php:
--------------------------------------------------------------------------------
1 | belongsToMany('Project', 'compatibility', 'version', 'project');
10 | }
11 |
12 | public static function latest()
13 | {
14 | $ttl = Config::get('cache.ttl');
15 |
16 | return Cache::remember('latestVersion', $ttl, function() {
17 | return Ndless::orderBy('version','desc')->first();
18 | });
19 | }
20 |
21 | public static function current()
22 | {
23 | $ttl = Config::get('cache.ttl');
24 |
25 | return Cache::remember('currentVersions', $ttl, function() {
26 | return Ndless::where('deprecated', 0)->orderBy('version')->get();
27 | });
28 | }
29 |
30 | public function getFilterAttribute()
31 | {
32 | return str_replace('.', '', $this->version);
33 | }
34 | }
--------------------------------------------------------------------------------
/app/Models/Project.php:
--------------------------------------------------------------------------------
1 | belongsToMany('Author','project_authors','project','author');
9 | }
10 |
11 | public function categories()
12 | {
13 | return $this->belongsToMany('Category','project_categories','project','category');
14 | }
15 |
16 | public function versions()
17 | {
18 | return $this->belongsToMany('Ndless','compatibility','project','version')->orderBy('ndless.version');
19 | }
20 |
21 | function getDeprecatedAttribute()
22 | {
23 | $ttl = Config::get('cache.ttl');
24 |
25 | $versions = Cache::remember('versions', $ttl, function() {
26 | return DB::table('compatibility')
27 | ->select('compatibility.project')
28 | ->distinct()
29 | ->join('ndless', 'ndless.id', '=', 'compatibility.version')
30 | ->where('ndless.deprecated', '=', '0')
31 | ->get();
32 | });
33 |
34 | foreach($versions as $elem) {
35 | if($elem->project == $this->id) {
36 | return false;
37 | }
38 | }
39 |
40 | return true;
41 | }
42 |
43 | function getClassicFormattedAttribute()
44 | {
45 | if($this->classic)
46 | return 'Classic';
47 | else
48 | return 'Classic';
49 | }
50 |
51 | function getCxFormattedAttribute()
52 | {
53 | if($this->cx)
54 | return 'CX';
55 | else
56 | return 'CX';
57 | }
58 |
59 | function getDownloadLinkAttribute()
60 | {
61 | if($this->tiplanet)
62 | return "http://tiplanet.org/forum/archives_voir.php?id={$this->tiplanet}";
63 | elseif($this->ticalc)
64 | return "http://www.ticalc.org/archives/files/fileinfo/".substr(strval($this->ticalc),0,3)."/{$this->ticalc}.html";
65 | else
66 | return;
67 | }
68 | }
69 |
--------------------------------------------------------------------------------
/app/Models/User.php:
--------------------------------------------------------------------------------
1 | getKey();
33 | }
34 |
35 | /**
36 | * Get the password for the user.
37 | *
38 | * @return string
39 | */
40 | public function getAuthPassword()
41 | {
42 | return $this->password;
43 | }
44 |
45 | /**
46 | * Get the e-mail address where password reminders are sent.
47 | *
48 | * @return string
49 | */
50 | public function getReminderEmail()
51 | {
52 | return $this->email;
53 | }
54 |
55 | public function getRememberToken()
56 | {
57 | return $this->remember_token;
58 | }
59 |
60 | public function setRememberToken($value)
61 | {
62 | $this->remember_token = $value;
63 | }
64 |
65 | public function getRememberTokenName()
66 | {
67 | return 'remember_token';
68 | }
69 |
70 | }
--------------------------------------------------------------------------------
/app/Providers/AppServiceProvider.php:
--------------------------------------------------------------------------------
1 | app->bind(
29 | 'Illuminate\Contracts\Auth\Registrar',
30 | 'App\Services\Registrar'
31 | );
32 | }
33 |
34 | }
35 |
--------------------------------------------------------------------------------
/app/Providers/BusServiceProvider.php:
--------------------------------------------------------------------------------
1 | mapUsing(function($command)
17 | {
18 | return Dispatcher::simpleMapping(
19 | $command, 'App\Commands', 'App\Handlers\Commands'
20 | );
21 | });
22 | }
23 |
24 | /**
25 | * Register any application services.
26 | *
27 | * @return void
28 | */
29 | public function register()
30 | {
31 | //
32 | }
33 |
34 | }
35 |
--------------------------------------------------------------------------------
/app/Providers/ConfigServiceProvider.php:
--------------------------------------------------------------------------------
1 | [
15 | 'EventListener',
16 | ],
17 | ];
18 |
19 | /**
20 | * Register any other events for your application.
21 | *
22 | * @param \Illuminate\Contracts\Events\Dispatcher $events
23 | * @return void
24 | */
25 | public function boot(DispatcherContract $events)
26 | {
27 | parent::boot($events);
28 |
29 | //
30 | }
31 |
32 | }
33 |
--------------------------------------------------------------------------------
/app/Providers/RouteServiceProvider.php:
--------------------------------------------------------------------------------
1 | group(['namespace' => $this->namespace], function($router)
97 | {
98 | require app_path('Http/routes.php');
99 | });
100 | }
101 |
102 | }
103 |
--------------------------------------------------------------------------------
/app/Services/Registrar.php:
--------------------------------------------------------------------------------
1 | 'required|max:255',
19 | 'email' => 'required|email|max:255|unique:users',
20 | 'password' => 'required|confirmed|min:6',
21 | ]);
22 | }
23 |
24 | /**
25 | * Create a new user instance after a valid registration.
26 | *
27 | * @param array $data
28 | * @return User
29 | */
30 | public function create(array $data)
31 | {
32 | return User::create([
33 | 'name' => $data['name'],
34 | 'email' => $data['email'],
35 | 'password' => bcrypt($data['password']),
36 | ]);
37 | }
38 |
39 | }
40 |
--------------------------------------------------------------------------------
/app/User.php:
--------------------------------------------------------------------------------
1 | make('Illuminate\Contracts\Console\Kernel');
32 |
33 | $status = $kernel->handle(
34 | $input = new Symfony\Component\Console\Input\ArgvInput,
35 | new Symfony\Component\Console\Output\ConsoleOutput
36 | );
37 |
38 | /*
39 | |--------------------------------------------------------------------------
40 | | Shutdown The Application
41 | |--------------------------------------------------------------------------
42 | |
43 | | Once Artisan has finished running. We will fire off the shutdown events
44 | | so that any final work may be done by the application before we shut
45 | | down the process. This is the last thing to happen to the request.
46 | |
47 | */
48 |
49 | $kernel->terminate($input, $status);
50 |
51 | exit($status);
52 |
--------------------------------------------------------------------------------
/bootstrap/app.php:
--------------------------------------------------------------------------------
1 | singleton(
30 | 'Illuminate\Contracts\Http\Kernel',
31 | 'App\Http\Kernel'
32 | );
33 |
34 | $app->singleton(
35 | 'Illuminate\Contracts\Console\Kernel',
36 | 'App\Console\Kernel'
37 | );
38 |
39 | $app->singleton(
40 | 'Illuminate\Contracts\Debug\ExceptionHandler',
41 | 'App\Exceptions\Handler'
42 | );
43 |
44 | /*
45 | |--------------------------------------------------------------------------
46 | | Return The Application
47 | |--------------------------------------------------------------------------
48 | |
49 | | This script returns the application instance. The instance is given to
50 | | the calling script so we can separate the building of the instances
51 | | from the actual running of the application and sending responses.
52 | |
53 | */
54 |
55 | return $app;
56 |
--------------------------------------------------------------------------------
/bootstrap/autoload.php:
--------------------------------------------------------------------------------
1 | env('APP_DEBUG'),
17 |
18 | /*
19 | |--------------------------------------------------------------------------
20 | | Application URL
21 | |--------------------------------------------------------------------------
22 | |
23 | | This URL is used by the console to properly generate URLs when using
24 | | the Artisan command line tool. You should set this to the root of
25 | | your application so that it is used when running Artisan tasks.
26 | |
27 | */
28 |
29 | 'url' => env('APP_URL', 'http://localhost'),
30 |
31 | /*
32 | |--------------------------------------------------------------------------
33 | | Application Timezone
34 | |--------------------------------------------------------------------------
35 | |
36 | | Here you may specify the default timezone for your application, which
37 | | will be used by the PHP date and date-time functions. We have gone
38 | | ahead and set this to a sensible default for you out of the box.
39 | |
40 | */
41 |
42 | 'timezone' => 'UTC',
43 |
44 | /*
45 | |--------------------------------------------------------------------------
46 | | Application Locale Configuration
47 | |--------------------------------------------------------------------------
48 | |
49 | | The application locale determines the default locale that will be used
50 | | by the translation service provider. You are free to set this value
51 | | to any of the locales which will be supported by the application.
52 | |
53 | */
54 |
55 | 'locale' => 'en',
56 |
57 | /*
58 | |--------------------------------------------------------------------------
59 | | Application Fallback Locale
60 | |--------------------------------------------------------------------------
61 | |
62 | | The fallback locale determines the locale to use when the current one
63 | | is not available. You may change the value to correspond to any of
64 | | the language folders that are provided through your application.
65 | |
66 | */
67 |
68 | 'fallback_locale' => 'en',
69 |
70 | 'languages' => array('en', 'de', 'fr'),
71 |
72 | /*
73 | |--------------------------------------------------------------------------
74 | | Encryption Key
75 | |--------------------------------------------------------------------------
76 | |
77 | | This key is used by the Illuminate encrypter service and should be set
78 | | to a random, 32 character string, otherwise these encrypted strings
79 | | will not be safe. Please do this before deploying an application!
80 | |
81 | */
82 |
83 | 'key' => env('APP_KEY', 'SomeRandomString'),
84 |
85 | 'cipher' => MCRYPT_RIJNDAEL_128,
86 |
87 | /*
88 | |--------------------------------------------------------------------------
89 | | Logging Configuration
90 | |--------------------------------------------------------------------------
91 | |
92 | | Here you may configure the log settings for your application. Out of
93 | | the box, Laravel uses the Monolog PHP logging library. This gives
94 | | you a variety of powerful log handlers / formatters to utilize.
95 | |
96 | | Available Settings: "single", "daily", "syslog", "errorlog"
97 | |
98 | */
99 |
100 | 'log' => 'daily',
101 |
102 | /*
103 | |--------------------------------------------------------------------------
104 | | Autoloaded Service Providers
105 | |--------------------------------------------------------------------------
106 | |
107 | | The service providers listed here will be automatically loaded on the
108 | | request to your application. Feel free to add your own services to
109 | | this array to grant expanded functionality to your applications.
110 | |
111 | */
112 |
113 | 'providers' => [
114 |
115 | /*
116 | * Laravel Framework Service Providers...
117 | */
118 | 'Illuminate\Foundation\Providers\ArtisanServiceProvider',
119 | 'Illuminate\Auth\AuthServiceProvider',
120 | 'Illuminate\Bus\BusServiceProvider',
121 | 'Illuminate\Cache\CacheServiceProvider',
122 | 'Illuminate\Foundation\Providers\ConsoleSupportServiceProvider',
123 | 'Illuminate\Routing\ControllerServiceProvider',
124 | 'Illuminate\Cookie\CookieServiceProvider',
125 | 'Illuminate\Database\DatabaseServiceProvider',
126 | 'Illuminate\Encryption\EncryptionServiceProvider',
127 | 'Illuminate\Filesystem\FilesystemServiceProvider',
128 | 'Illuminate\Foundation\Providers\FoundationServiceProvider',
129 | 'Illuminate\Hashing\HashServiceProvider',
130 | 'Illuminate\Mail\MailServiceProvider',
131 | 'Illuminate\Pagination\PaginationServiceProvider',
132 | 'Illuminate\Pipeline\PipelineServiceProvider',
133 | 'Illuminate\Queue\QueueServiceProvider',
134 | 'Illuminate\Redis\RedisServiceProvider',
135 | 'Illuminate\Auth\Passwords\PasswordResetServiceProvider',
136 | 'Illuminate\Session\SessionServiceProvider',
137 | 'Illuminate\Translation\TranslationServiceProvider',
138 | 'Illuminate\Validation\ValidationServiceProvider',
139 | 'Illuminate\View\ViewServiceProvider',
140 | 'Illuminate\Broadcasting\BroadcastServiceProvider',
141 |
142 | /*
143 | * Application Service Providers...
144 | */
145 | 'App\Providers\AppServiceProvider',
146 | 'App\Providers\BusServiceProvider',
147 | 'App\Providers\ConfigServiceProvider',
148 | 'App\Providers\EventServiceProvider',
149 | 'App\Providers\RouteServiceProvider',
150 |
151 | Barryvdh\Debugbar\ServiceProvider::class,
152 |
153 | ],
154 |
155 | /*
156 | |--------------------------------------------------------------------------
157 | | Class Aliases
158 | |--------------------------------------------------------------------------
159 | |
160 | | This array of class aliases will be registered when this application
161 | | is started. However, feel free to register as many as you wish as
162 | | the aliases are "lazy" loaded so they don't hinder performance.
163 | |
164 | */
165 |
166 | 'aliases' => [
167 |
168 | 'App' => 'Illuminate\Support\Facades\App',
169 | 'Artisan' => 'Illuminate\Support\Facades\Artisan',
170 | 'Auth' => 'Illuminate\Support\Facades\Auth',
171 | 'Blade' => 'Illuminate\Support\Facades\Blade',
172 | 'Bus' => 'Illuminate\Support\Facades\Bus',
173 | 'Cache' => 'Illuminate\Support\Facades\Cache',
174 | 'Config' => 'Illuminate\Support\Facades\Config',
175 | 'Cookie' => 'Illuminate\Support\Facades\Cookie',
176 | 'Crypt' => 'Illuminate\Support\Facades\Crypt',
177 | 'DB' => 'Illuminate\Support\Facades\DB',
178 | 'Eloquent' => 'Illuminate\Database\Eloquent\Model',
179 | 'Event' => 'Illuminate\Support\Facades\Event',
180 | 'File' => 'Illuminate\Support\Facades\File',
181 | 'Hash' => 'Illuminate\Support\Facades\Hash',
182 | 'Input' => 'Illuminate\Support\Facades\Input',
183 | 'Inspiring' => 'Illuminate\Foundation\Inspiring',
184 | 'Lang' => 'Illuminate\Support\Facades\Lang',
185 | 'Log' => 'Illuminate\Support\Facades\Log',
186 | 'Mail' => 'Illuminate\Support\Facades\Mail',
187 | 'Password' => 'Illuminate\Support\Facades\Password',
188 | 'Queue' => 'Illuminate\Support\Facades\Queue',
189 | 'Redirect' => 'Illuminate\Support\Facades\Redirect',
190 | 'Redis' => 'Illuminate\Support\Facades\Redis',
191 | 'Request' => 'Illuminate\Support\Facades\Request',
192 | 'Response' => 'Illuminate\Support\Facades\Response',
193 | 'Route' => 'Illuminate\Support\Facades\Route',
194 | 'Schema' => 'Illuminate\Support\Facades\Schema',
195 | 'Session' => 'Illuminate\Support\Facades\Session',
196 | 'Storage' => 'Illuminate\Support\Facades\Storage',
197 | 'URL' => 'Illuminate\Support\Facades\URL',
198 | 'Validator' => 'Illuminate\Support\Facades\Validator',
199 | 'View' => 'Illuminate\Support\Facades\View',
200 | 'Debugbar' => Barryvdh\Debugbar\Facade::class,
201 |
202 | ],
203 |
204 | ];
205 |
--------------------------------------------------------------------------------
/config/auth.php:
--------------------------------------------------------------------------------
1 | 'eloquent',
19 |
20 | /*
21 | |--------------------------------------------------------------------------
22 | | Authentication Model
23 | |--------------------------------------------------------------------------
24 | |
25 | | When using the "Eloquent" authentication driver, we need to know which
26 | | Eloquent model should be used to retrieve your users. Of course, it
27 | | is often just the "User" model but you may use whatever you like.
28 | |
29 | */
30 |
31 | 'model' => 'App\User',
32 |
33 | /*
34 | |--------------------------------------------------------------------------
35 | | Authentication Table
36 | |--------------------------------------------------------------------------
37 | |
38 | | When using the "Database" authentication driver, we need to know which
39 | | table should be used to retrieve your users. We have chosen a basic
40 | | default value but you may easily change it to any table you like.
41 | |
42 | */
43 |
44 | 'table' => 'users',
45 |
46 | /*
47 | |--------------------------------------------------------------------------
48 | | Password Reset Settings
49 | |--------------------------------------------------------------------------
50 | |
51 | | Here you may set the options for resetting passwords including the view
52 | | that is your password reset e-mail. You can also set the name of the
53 | | table that maintains all of the reset tokens for your application.
54 | |
55 | | The expire time is the number of minutes that the reset token should be
56 | | considered valid. This security feature keeps tokens short-lived so
57 | | they have less time to be guessed. You may change this as needed.
58 | |
59 | */
60 |
61 | 'password' => [
62 | 'email' => 'emails.password',
63 | 'table' => 'password_resets',
64 | 'expire' => 60,
65 | ],
66 |
67 | ];
68 |
--------------------------------------------------------------------------------
/config/cache.php:
--------------------------------------------------------------------------------
1 | env('CACHE_DRIVER', 'file'),
17 |
18 | 'ttl' => env('CACHE_TTL', 30),
19 |
20 | /*
21 | |--------------------------------------------------------------------------
22 | | Cache Stores
23 | |--------------------------------------------------------------------------
24 | |
25 | | Here you may define all of the cache "stores" for your application as
26 | | well as their drivers. You may even define multiple stores for the
27 | | same cache driver to group types of items stored in your caches.
28 | |
29 | */
30 |
31 | 'stores' => [
32 |
33 | 'apc' => [
34 | 'driver' => 'apc'
35 | ],
36 |
37 | 'array' => [
38 | 'driver' => 'array'
39 | ],
40 |
41 | 'database' => [
42 | 'driver' => 'database',
43 | 'table' => 'cache',
44 | 'connection' => null,
45 | ],
46 |
47 | 'file' => [
48 | 'driver' => 'file',
49 | 'path' => storage_path().'/framework/cache',
50 | ],
51 |
52 | 'memcached' => [
53 | 'driver' => 'memcached',
54 | 'servers' => [
55 | [
56 | 'host' => '127.0.0.1', 'port' => 11211, 'weight' => 100
57 | ],
58 | ],
59 | ],
60 |
61 | 'redis' => [
62 | 'driver' => 'redis',
63 | 'connection' => 'default',
64 | ],
65 |
66 | ],
67 |
68 | /*
69 | |--------------------------------------------------------------------------
70 | | Cache Key Prefix
71 | |--------------------------------------------------------------------------
72 | |
73 | | When utilizing a RAM based store such as APC or Memcached, there might
74 | | be other applications utilizing the same cache. So, we'll specify a
75 | | value to get prefixed to all our keys so we can avoid collisions.
76 | |
77 | */
78 |
79 | 'prefix' => 'laravel',
80 |
81 | ];
82 |
--------------------------------------------------------------------------------
/config/compile.php:
--------------------------------------------------------------------------------
1 | [
17 |
18 | realpath(__DIR__.'/../app/Providers/AppServiceProvider.php'),
19 | realpath(__DIR__.'/../app/Providers/BusServiceProvider.php'),
20 | realpath(__DIR__.'/../app/Providers/ConfigServiceProvider.php'),
21 | realpath(__DIR__.'/../app/Providers/EventServiceProvider.php'),
22 | realpath(__DIR__.'/../app/Providers/RouteServiceProvider.php'),
23 |
24 | ],
25 |
26 | /*
27 | |--------------------------------------------------------------------------
28 | | Compiled File Providers
29 | |--------------------------------------------------------------------------
30 | |
31 | | Here you may list service providers which define a "compiles" function
32 | | that returns additional files that should be compiled, providing an
33 | | easy way to get common files from any packages you are utilizing.
34 | |
35 | */
36 |
37 | 'providers' => [
38 | //
39 | ],
40 |
41 | ];
42 |
--------------------------------------------------------------------------------
/config/database.php:
--------------------------------------------------------------------------------
1 | PDO::FETCH_CLASS,
17 |
18 | /*
19 | |--------------------------------------------------------------------------
20 | | Default Database Connection Name
21 | |--------------------------------------------------------------------------
22 | |
23 | | Here you may specify which of the database connections below you wish
24 | | to use as your default connection for all database work. Of course
25 | | you may use many connections at once using the Database library.
26 | |
27 | */
28 |
29 | 'default' => 'mysql',
30 |
31 | /*
32 | |--------------------------------------------------------------------------
33 | | Database Connections
34 | |--------------------------------------------------------------------------
35 | |
36 | | Here are each of the database connections setup for your application.
37 | | Of course, examples of configuring each database platform that is
38 | | supported by Laravel is shown below to make development simple.
39 | |
40 | |
41 | | All database work in Laravel is done through the PHP PDO facilities
42 | | so make sure you have the driver for your particular database of
43 | | choice installed on your machine before you begin development.
44 | |
45 | */
46 |
47 | 'connections' => [
48 |
49 | 'sqlite' => [
50 | 'driver' => 'sqlite',
51 | 'database' => storage_path().'/database.sqlite',
52 | 'prefix' => '',
53 | ],
54 |
55 | 'mysql' => [
56 | 'driver' => 'mysql',
57 | 'host' => env('DB_HOST', 'localhost'),
58 | 'database' => env('DB_DATABASE', 'forge'),
59 | 'username' => env('DB_USERNAME', 'forge'),
60 | 'password' => env('DB_PASSWORD', ''),
61 | 'charset' => 'utf8',
62 | 'collation' => 'utf8_unicode_ci',
63 | 'prefix' => '',
64 | 'strict' => false,
65 | ],
66 |
67 | 'pgsql' => [
68 | 'driver' => 'pgsql',
69 | 'host' => env('DB_HOST', 'localhost'),
70 | 'database' => env('DB_DATABASE', 'forge'),
71 | 'username' => env('DB_USERNAME', 'forge'),
72 | 'password' => env('DB_PASSWORD', ''),
73 | 'charset' => 'utf8',
74 | 'prefix' => '',
75 | 'schema' => 'public',
76 | ],
77 |
78 | 'sqlsrv' => [
79 | 'driver' => 'sqlsrv',
80 | 'host' => env('DB_HOST', 'localhost'),
81 | 'database' => env('DB_DATABASE', 'forge'),
82 | 'username' => env('DB_USERNAME', 'forge'),
83 | 'password' => env('DB_PASSWORD', ''),
84 | 'prefix' => '',
85 | ],
86 |
87 | ],
88 |
89 | /*
90 | |--------------------------------------------------------------------------
91 | | Migration Repository Table
92 | |--------------------------------------------------------------------------
93 | |
94 | | This table keeps track of all the migrations that have already run for
95 | | your application. Using this information, we can determine which of
96 | | the migrations on disk haven't actually been run in the database.
97 | |
98 | */
99 |
100 | 'migrations' => 'migrations',
101 |
102 | /*
103 | |--------------------------------------------------------------------------
104 | | Redis Databases
105 | |--------------------------------------------------------------------------
106 | |
107 | | Redis is an open source, fast, and advanced key-value store that also
108 | | provides a richer set of commands than a typical key-value systems
109 | | such as APC or Memcached. Laravel makes it easy to dig right in.
110 | |
111 | */
112 |
113 | 'redis' => [
114 |
115 | 'cluster' => false,
116 |
117 | 'default' => [
118 | 'host' => '127.0.0.1',
119 | 'port' => 6379,
120 | 'database' => env('REDIS_DB', 0),
121 | ],
122 |
123 | ],
124 |
125 | ];
126 |
--------------------------------------------------------------------------------
/config/filesystems.php:
--------------------------------------------------------------------------------
1 | 'local',
19 |
20 | /*
21 | |--------------------------------------------------------------------------
22 | | Default Cloud Filesystem Disk
23 | |--------------------------------------------------------------------------
24 | |
25 | | Many applications store files both locally and in the cloud. For this
26 | | reason, you may specify a default "cloud" driver here. This driver
27 | | will be bound as the Cloud disk implementation in the container.
28 | |
29 | */
30 |
31 | 'cloud' => 's3',
32 |
33 | /*
34 | |--------------------------------------------------------------------------
35 | | Filesystem Disks
36 | |--------------------------------------------------------------------------
37 | |
38 | | Here you may configure as many filesystem "disks" as you wish, and you
39 | | may even configure multiple disks of the same driver. Defaults have
40 | | been setup for each driver as an example of the required options.
41 | |
42 | */
43 |
44 | 'disks' => [
45 |
46 | 'local' => [
47 | 'driver' => 'local',
48 | 'root' => storage_path().'/app',
49 | ],
50 |
51 | 's3' => [
52 | 'driver' => 's3',
53 | 'key' => 'your-key',
54 | 'secret' => 'your-secret',
55 | 'region' => 'your-region',
56 | 'bucket' => 'your-bucket',
57 | ],
58 |
59 | 'rackspace' => [
60 | 'driver' => 'rackspace',
61 | 'username' => 'your-username',
62 | 'key' => 'your-key',
63 | 'container' => 'your-container',
64 | 'endpoint' => 'https://identity.api.rackspacecloud.com/v2.0/',
65 | 'region' => 'IAD',
66 | 'url_type' => 'publicURL'
67 | ],
68 |
69 | ],
70 |
71 | ];
72 |
--------------------------------------------------------------------------------
/config/mail.php:
--------------------------------------------------------------------------------
1 | env('MAIL_DRIVER', 'smtp'),
19 |
20 | /*
21 | |--------------------------------------------------------------------------
22 | | SMTP Host Address
23 | |--------------------------------------------------------------------------
24 | |
25 | | Here you may provide the host address of the SMTP server used by your
26 | | applications. A default option is provided that is compatible with
27 | | the Mailgun mail service which will provide reliable deliveries.
28 | |
29 | */
30 |
31 | 'host' => env('MAIL_HOST', 'smtp.mailgun.org'),
32 |
33 | /*
34 | |--------------------------------------------------------------------------
35 | | SMTP Host Port
36 | |--------------------------------------------------------------------------
37 | |
38 | | This is the SMTP port used by your application to deliver e-mails to
39 | | users of the application. Like the host we have set this value to
40 | | stay compatible with the Mailgun e-mail application by default.
41 | |
42 | */
43 |
44 | 'port' => env('MAIL_PORT', 587),
45 |
46 | /*
47 | |--------------------------------------------------------------------------
48 | | Global "From" Address
49 | |--------------------------------------------------------------------------
50 | |
51 | | You may wish for all e-mails sent by your application to be sent from
52 | | the same address. Here, you may specify a name and address that is
53 | | used globally for all e-mails that are sent by your application.
54 | |
55 | */
56 |
57 | 'from' => ['address' => null, 'name' => null],
58 |
59 | /*
60 | |--------------------------------------------------------------------------
61 | | E-Mail Encryption Protocol
62 | |--------------------------------------------------------------------------
63 | |
64 | | Here you may specify the encryption protocol that should be used when
65 | | the application send e-mail messages. A sensible default using the
66 | | transport layer security protocol should provide great security.
67 | |
68 | */
69 |
70 | 'encryption' => 'tls',
71 |
72 | /*
73 | |--------------------------------------------------------------------------
74 | | SMTP Server Username
75 | |--------------------------------------------------------------------------
76 | |
77 | | If your SMTP server requires a username for authentication, you should
78 | | set it here. This will get used to authenticate with your server on
79 | | connection. You may also set the "password" value below this one.
80 | |
81 | */
82 |
83 | 'username' => env('MAIL_USERNAME'),
84 |
85 | /*
86 | |--------------------------------------------------------------------------
87 | | SMTP Server Password
88 | |--------------------------------------------------------------------------
89 | |
90 | | Here you may set the password required by your SMTP server to send out
91 | | messages from your application. This will be given to the server on
92 | | connection so that the application will be able to send messages.
93 | |
94 | */
95 |
96 | 'password' => env('MAIL_PASSWORD'),
97 |
98 | /*
99 | |--------------------------------------------------------------------------
100 | | Sendmail System Path
101 | |--------------------------------------------------------------------------
102 | |
103 | | When using the "sendmail" driver to send e-mails, we will need to know
104 | | the path to where Sendmail lives on this server. A default path has
105 | | been provided here, which will work well on most of your systems.
106 | |
107 | */
108 |
109 | 'sendmail' => '/usr/sbin/sendmail -bs',
110 |
111 | /*
112 | |--------------------------------------------------------------------------
113 | | Mail "Pretend"
114 | |--------------------------------------------------------------------------
115 | |
116 | | When this option is enabled, e-mail will not actually be sent over the
117 | | web and will instead be written to your application's logs files so
118 | | you may inspect the message. This is great for local development.
119 | |
120 | */
121 |
122 | 'pretend' => false,
123 |
124 | ];
125 |
--------------------------------------------------------------------------------
/config/queue.php:
--------------------------------------------------------------------------------
1 | env('QUEUE_DRIVER', 'sync'),
20 |
21 | /*
22 | |--------------------------------------------------------------------------
23 | | Queue Connections
24 | |--------------------------------------------------------------------------
25 | |
26 | | Here you may configure the connection information for each server that
27 | | is used by your application. A default configuration has been added
28 | | for each back-end shipped with Laravel. You are free to add more.
29 | |
30 | */
31 |
32 | 'connections' => [
33 |
34 | 'sync' => [
35 | 'driver' => 'sync',
36 | ],
37 |
38 | 'database' => [
39 | 'driver' => 'database',
40 | 'table' => 'jobs',
41 | 'queue' => 'default',
42 | 'expire' => 60,
43 | ],
44 |
45 | 'beanstalkd' => [
46 | 'driver' => 'beanstalkd',
47 | 'host' => 'localhost',
48 | 'queue' => 'default',
49 | 'ttr' => 60,
50 | ],
51 |
52 | 'sqs' => [
53 | 'driver' => 'sqs',
54 | 'key' => 'your-public-key',
55 | 'secret' => 'your-secret-key',
56 | 'queue' => 'your-queue-url',
57 | 'region' => 'us-east-1',
58 | ],
59 |
60 | 'iron' => [
61 | 'driver' => 'iron',
62 | 'host' => 'mq-aws-us-east-1.iron.io',
63 | 'token' => 'your-token',
64 | 'project' => 'your-project-id',
65 | 'queue' => 'your-queue-name',
66 | 'encrypt' => true,
67 | ],
68 |
69 | 'redis' => [
70 | 'driver' => 'redis',
71 | 'queue' => 'default',
72 | 'expire' => 60,
73 | ],
74 |
75 | ],
76 |
77 | /*
78 | |--------------------------------------------------------------------------
79 | | Failed Queue Jobs
80 | |--------------------------------------------------------------------------
81 | |
82 | | These options configure the behavior of failed queue job logging so you
83 | | can control which database and table are used to store the jobs that
84 | | have failed. You may change them to any database / table you wish.
85 | |
86 | */
87 |
88 | 'failed' => [
89 | 'database' => 'mysql', 'table' => 'failed_jobs',
90 | ],
91 |
92 | ];
93 |
--------------------------------------------------------------------------------
/config/services.php:
--------------------------------------------------------------------------------
1 | [
18 | 'domain' => '',
19 | 'secret' => '',
20 | ],
21 |
22 | 'mandrill' => [
23 | 'secret' => '',
24 | ],
25 |
26 | 'ses' => [
27 | 'key' => '',
28 | 'secret' => '',
29 | 'region' => 'us-east-1',
30 | ],
31 |
32 | 'stripe' => [
33 | 'model' => 'App\User',
34 | 'secret' => '',
35 | ],
36 |
37 | ];
38 |
--------------------------------------------------------------------------------
/config/session.php:
--------------------------------------------------------------------------------
1 | env('SESSION_DRIVER', 'file'),
20 |
21 | /*
22 | |--------------------------------------------------------------------------
23 | | Session Lifetime
24 | |--------------------------------------------------------------------------
25 | |
26 | | Here you may specify the number of minutes that you wish the session
27 | | to be allowed to remain idle before it expires. If you want them
28 | | to immediately expire on the browser closing, set that option.
29 | |
30 | */
31 |
32 | 'lifetime' => 120,
33 |
34 | 'expire_on_close' => false,
35 |
36 | /*
37 | |--------------------------------------------------------------------------
38 | | Session Encryption
39 | |--------------------------------------------------------------------------
40 | |
41 | | This option allows you to easily specify that all of your session data
42 | | should be encrypted before it is stored. All encryption will be run
43 | | automatically by Laravel and you can use the Session like normal.
44 | |
45 | */
46 |
47 | 'encrypt' => false,
48 |
49 | /*
50 | |--------------------------------------------------------------------------
51 | | Session File Location
52 | |--------------------------------------------------------------------------
53 | |
54 | | When using the native session driver, we need a location where session
55 | | files may be stored. A default has been set for you but a different
56 | | location may be specified. This is only needed for file sessions.
57 | |
58 | */
59 |
60 | 'files' => storage_path().'/framework/sessions',
61 |
62 | /*
63 | |--------------------------------------------------------------------------
64 | | Session Database Connection
65 | |--------------------------------------------------------------------------
66 | |
67 | | When using the "database" or "redis" session drivers, you may specify a
68 | | connection that should be used to manage these sessions. This should
69 | | correspond to a connection in your database configuration options.
70 | |
71 | */
72 |
73 | 'connection' => null,
74 |
75 | /*
76 | |--------------------------------------------------------------------------
77 | | Session Database Table
78 | |--------------------------------------------------------------------------
79 | |
80 | | When using the "database" session driver, you may specify the table we
81 | | should use to manage the sessions. Of course, a sensible default is
82 | | provided for you; however, you are free to change this as needed.
83 | |
84 | */
85 |
86 | 'table' => 'sessions',
87 |
88 | /*
89 | |--------------------------------------------------------------------------
90 | | Session Sweeping Lottery
91 | |--------------------------------------------------------------------------
92 | |
93 | | Some session drivers must manually sweep their storage location to get
94 | | rid of old sessions from storage. Here are the chances that it will
95 | | happen on a given request. By default, the odds are 2 out of 100.
96 | |
97 | */
98 |
99 | 'lottery' => [2, 100],
100 |
101 | /*
102 | |--------------------------------------------------------------------------
103 | | Session Cookie Name
104 | |--------------------------------------------------------------------------
105 | |
106 | | Here you may change the name of the cookie used to identify a session
107 | | instance by ID. The name specified here will get used every time a
108 | | new session cookie is created by the framework for every driver.
109 | |
110 | */
111 |
112 | 'cookie' => 'laravel_session',
113 |
114 | /*
115 | |--------------------------------------------------------------------------
116 | | Session Cookie Path
117 | |--------------------------------------------------------------------------
118 | |
119 | | The session cookie path determines the path for which the cookie will
120 | | be regarded as available. Typically, this will be the root path of
121 | | your application but you are free to change this when necessary.
122 | |
123 | */
124 |
125 | 'path' => '/',
126 |
127 | /*
128 | |--------------------------------------------------------------------------
129 | | Session Cookie Domain
130 | |--------------------------------------------------------------------------
131 | |
132 | | Here you may change the domain of the cookie used to identify a session
133 | | in your application. This will determine which domains the cookie is
134 | | available to in your application. A sensible default has been set.
135 | |
136 | */
137 |
138 | 'domain' => null,
139 |
140 | /*
141 | |--------------------------------------------------------------------------
142 | | HTTPS Only Cookies
143 | |--------------------------------------------------------------------------
144 | |
145 | | By setting this option to true, session cookies will only be sent back
146 | | to the server if the browser has a HTTPS connection. This will keep
147 | | the cookie from being sent to you if it can not be done securely.
148 | |
149 | */
150 |
151 | 'secure' => false,
152 |
153 | ];
154 |
--------------------------------------------------------------------------------
/config/view.php:
--------------------------------------------------------------------------------
1 | [
17 | realpath(base_path('resources/views'))
18 | ],
19 |
20 | /*
21 | |--------------------------------------------------------------------------
22 | | Compiled View Path
23 | |--------------------------------------------------------------------------
24 | |
25 | | This option determines where all the compiled Blade templates will be
26 | | stored for your application. Typically, this is within the storage
27 | | directory. However, as usual, you are free to change this value.
28 | |
29 | */
30 |
31 | 'compiled' => realpath(storage_path().'/framework/views'),
32 |
33 | ];
34 |
--------------------------------------------------------------------------------
/database/.gitignore:
--------------------------------------------------------------------------------
1 | *.sqlite
2 |
--------------------------------------------------------------------------------
/database/migrations/.gitkeep:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/compujuckel/ndless-apps/b646238dbc9057b9783ca613fd4abd65666d0cb5/database/migrations/.gitkeep
--------------------------------------------------------------------------------
/database/migrations/2014_03_18_171300_create_authors_table.php:
--------------------------------------------------------------------------------
1 | increments('id');
18 | $table->string('name')->unique();
19 | $table->timestamps();
20 | });
21 | }
22 |
23 | /**
24 | * Reverse the migrations.
25 | *
26 | * @return void
27 | */
28 | public function down()
29 | {
30 | Schema::drop('authors');
31 | }
32 |
33 | }
34 |
--------------------------------------------------------------------------------
/database/migrations/2014_03_18_171423_create_users_table.php:
--------------------------------------------------------------------------------
1 | increments('id');
18 | $table->string('name')->unique();
19 | $table->string('password');
20 | $table->unsignedInteger('author_id')->nullable();
21 | $table->foreign('author_id')->references('id')->on('authors');
22 | $table->timestamps();
23 | });
24 | }
25 |
26 | /**
27 | * Reverse the migrations.
28 | *
29 | * @return void
30 | */
31 | public function down()
32 | {
33 | Schema::drop('users');
34 | }
35 |
36 | }
37 |
--------------------------------------------------------------------------------
/database/migrations/2014_03_18_172218_create_projects_table.php:
--------------------------------------------------------------------------------
1 | increments('id');
18 | $table->string('name')->unique();
19 | $table->text('description');
20 | $table->boolean('classic');
21 | $table->boolean('cx');
22 | $table->integer('tiplanet');
23 | $table->integer('ticalc');
24 | $table->text('website');
25 | $table->integer('clicks');
26 | $table->timestamps();
27 | });
28 | }
29 |
30 | /**
31 | * Reverse the migrations.
32 | *
33 | * @return void
34 | */
35 | public function down()
36 | {
37 | Schema::drop('projects');
38 | }
39 |
40 | }
41 |
--------------------------------------------------------------------------------
/database/migrations/2014_03_18_173747_create_ndless_table.php:
--------------------------------------------------------------------------------
1 | increments('id');
18 | $table->string('version',3);
19 | });
20 | }
21 |
22 | /**
23 | * Reverse the migrations.
24 | *
25 | * @return void
26 | */
27 | public function down()
28 | {
29 | Schema::drop('ndless');
30 | }
31 |
32 | }
33 |
--------------------------------------------------------------------------------
/database/migrations/2014_03_18_173911_create_compatibility_table.php:
--------------------------------------------------------------------------------
1 | unsignedInteger('project');
18 | $table->unsignedInteger('version');
19 | $table->foreign('project')->references('id')->on('projects');
20 | $table->foreign('version')->references('id')->on('ndless');
21 | $table->primary(array('project','version'));
22 | });
23 | }
24 |
25 | /**
26 | * Reverse the migrations.
27 | *
28 | * @return void
29 | */
30 | public function down()
31 | {
32 | Schema::drop('compatibility');
33 | }
34 |
35 | }
36 |
--------------------------------------------------------------------------------
/database/migrations/2014_03_18_174825_create_categories_table.php:
--------------------------------------------------------------------------------
1 | increments('id');
18 | $table->string('name')->unique();
19 | });
20 | }
21 |
22 | /**
23 | * Reverse the migrations.
24 | *
25 | * @return void
26 | */
27 | public function down()
28 | {
29 | Schema::drop('categories');
30 | }
31 |
32 | }
33 |
--------------------------------------------------------------------------------
/database/migrations/2014_03_18_175035_create_project_categories_table.php:
--------------------------------------------------------------------------------
1 | unsignedInteger('project');
18 | $table->unsignedInteger('category');
19 | $table->foreign('project')->references('id')->on('projects');
20 | $table->foreign('category')->references('id')->on('categories');
21 | $table->primary(array('project','category'));
22 | });
23 | }
24 |
25 | /**
26 | * Reverse the migrations.
27 | *
28 | * @return void
29 | */
30 | public function down()
31 | {
32 | Schema::drop('project_categories');
33 | }
34 |
35 | }
36 |
--------------------------------------------------------------------------------
/database/migrations/2014_03_18_175906_create_project_authors_table.php:
--------------------------------------------------------------------------------
1 | unsignedInteger('project');
18 | $table->unsignedInteger('author');
19 | $table->foreign('project')->references('id')->on('projects');
20 | $table->foreign('author')->references('id')->on('authors');
21 | $table->primary(array('project','author'));
22 | });
23 | }
24 |
25 | /**
26 | * Reverse the migrations.
27 | *
28 | * @return void
29 | */
30 | public function down()
31 | {
32 | Schema::drop('project_authors');
33 | }
34 |
35 | }
36 |
--------------------------------------------------------------------------------
/database/migrations/2014_03_22_182951_users_add_editor_admin_columns.php:
--------------------------------------------------------------------------------
1 | boolean('editor')->default(0);
17 | $table->boolean('admin')->default(0);
18 | });
19 | }
20 |
21 | /**
22 | * Reverse the migrations.
23 | *
24 | * @return void
25 | */
26 | public function down()
27 | {
28 | Schema::table('users', function($table){
29 | $table->dropColumn('editor', 'admin');
30 | });
31 | }
32 |
33 | }
34 |
--------------------------------------------------------------------------------
/database/migrations/2014_04_11_140118_projects_on_delete_changes.php:
--------------------------------------------------------------------------------
1 | dropForeign('compatibility_project_foreign');
18 | $table->foreign('project')->references('id')->on('projects')->onDelete('cascade');
19 |
20 | $table->dropForeign('compatibility_version_foreign');
21 | $table->foreign('version')->references('id')->on('ndless')->onDelete('cascade');
22 | });
23 | }
24 |
25 | /**
26 | * Reverse the migrations.
27 | *
28 | * @return void
29 | */
30 | public function down()
31 | {
32 | Schema::table('compatibility', function($table)
33 | {
34 | $table->dropForeign('compatibility_project_foreign');
35 | $table->foreign('project')->references('id')->on('projects');
36 |
37 | $table->dropForeign('compatibility_version_foreign');
38 | $table->foreign('version')->references('id')->on('ndless');
39 | });
40 | }
41 |
42 | }
43 |
--------------------------------------------------------------------------------
/database/migrations/2014_04_11_140733_project_authors_on_delete_changes.php:
--------------------------------------------------------------------------------
1 | dropForeign('project_authors_project_foreign');
18 | $table->foreign('project')->references('id')->on('projects')->onDelete('cascade');
19 | });
20 | }
21 |
22 | /**
23 | * Reverse the migrations.
24 | *
25 | * @return void
26 | */
27 | public function down()
28 | {
29 | Schema::table('project_authors', function($table)
30 | {
31 | $table->dropForeign('project_authors_project_foreign');
32 | $table->foreign('project')->references('id')->on('projects');
33 | });
34 | }
35 |
36 | }
37 |
--------------------------------------------------------------------------------
/database/migrations/2014_05_24_183352_projects_add_featured_column.php:
--------------------------------------------------------------------------------
1 | integer('featured')->nullable();
18 | });
19 | }
20 |
21 | /**
22 | * Reverse the migrations.
23 | *
24 | * @return void
25 | */
26 | public function down()
27 | {
28 | Schema::table('projects', function($table)
29 | {
30 | $table->dropColumn('featured');
31 | });
32 | }
33 |
34 | }
35 |
--------------------------------------------------------------------------------
/database/migrations/2014_05_24_184232_projects_add_screenshot_column.php:
--------------------------------------------------------------------------------
1 | text('screenshot')->nullable();
18 | });
19 | }
20 |
21 | /**
22 | * Reverse the migrations.
23 | *
24 | * @return void
25 | */
26 | public function down()
27 | {
28 | Schema::table('projects', function($table)
29 | {
30 | $table->dropColumn('screenshot');
31 | });
32 | }
33 |
34 | }
35 |
--------------------------------------------------------------------------------
/database/migrations/2014_08_23_160223_users_add_remember_token_column.php:
--------------------------------------------------------------------------------
1 | text('remember_token')->nullable();
18 | });
19 | }
20 |
21 | /**
22 | * Reverse the migrations.
23 | *
24 | * @return void
25 | */
26 | public function down()
27 | {
28 | Schema::table('users', function($table)
29 | {
30 | $table->dropColumn('remember_token');
31 | });
32 | }
33 |
34 | }
35 |
--------------------------------------------------------------------------------
/database/migrations/2014_09_15_132451_projects_remove_screenshot_column.php:
--------------------------------------------------------------------------------
1 | dropColumn('screenshot');
18 | });
19 | }
20 |
21 | /**
22 | * Reverse the migrations.
23 | *
24 | * @return void
25 | */
26 | public function down()
27 | {
28 | Schema::table('projects', function($table)
29 | {
30 | $table->text('screenshot')->nullable();
31 | });
32 | }
33 |
34 | }
35 |
--------------------------------------------------------------------------------
/database/migrations/2016_01_06_193557_ndless_add_deprecated_column.php:
--------------------------------------------------------------------------------
1 | boolean('deprecated');
17 | });
18 | }
19 |
20 | /**
21 | * Reverse the migrations.
22 | *
23 | * @return void
24 | */
25 | public function down()
26 | {
27 | Schema::table('ndless', function($table){
28 | $table->dropColumn('deprecated');
29 | });
30 | }
31 | }
32 |
--------------------------------------------------------------------------------
/database/seeds/.gitkeep:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/compujuckel/ndless-apps/b646238dbc9057b9783ca613fd4abd65666d0cb5/database/seeds/.gitkeep
--------------------------------------------------------------------------------
/database/seeds/DatabaseSeeder.php:
--------------------------------------------------------------------------------
1 | call('UserTableSeeder');
18 | }
19 |
20 | }
21 |
--------------------------------------------------------------------------------
/docker/default:
--------------------------------------------------------------------------------
1 | server {
2 | listen 80;
3 | server_name _;
4 |
5 | root /var/www/html/public;
6 | index index.html index.htm index.php;
7 |
8 | error_log /dev/stderr warn;
9 | access_log /dev/stdout;
10 |
11 | location / {
12 | try_files $uri $uri/ /index.php?$query_string;
13 |
14 | location ~ \.php$ {
15 | fastcgi_split_path_info ^(.+\.php)(/.+)$;
16 | fastcgi_pass 127.0.0.1:9000;
17 | fastcgi_index index.php;
18 | include fastcgi.conf;
19 | }
20 | }
21 | }
--------------------------------------------------------------------------------
/docker/supervisord.conf:
--------------------------------------------------------------------------------
1 | [supervisord]
2 | logfile = /dev/null
3 | loglevel = info
4 | pidfile = /var/run/supervisord.pid
5 | nodaemon = true
6 |
7 | [program:php-fpm]
8 | command = php-fpm
9 | autostart = true
10 | autorestart = true
11 | stdout_logfile = /dev/stdout
12 | stdout_logfile_maxbytes = 0
13 | stderr_logfile = /dev/stderr
14 | stderr_logfile_maxbytes = 0
15 |
16 | [program:nginx]
17 | command = /usr/sbin/nginx -g "daemon off;"
18 | autostart = true
19 | autorestart = true
20 | stdout_logfile = /dev/stdout
21 | stdout_logfile_maxbytes = 0
22 | stderr_logfile = /dev/stderr
23 | stderr_logfile_maxbytes = 0
--------------------------------------------------------------------------------
/gulpfile.js:
--------------------------------------------------------------------------------
1 | var elixir = require('laravel-elixir');
2 |
3 | /*
4 | |--------------------------------------------------------------------------
5 | | Elixir Asset Management
6 | |--------------------------------------------------------------------------
7 | |
8 | | Elixir provides a clean, fluent API for defining some basic Gulp tasks
9 | | for your Laravel application. By default, we are compiling the Less
10 | | file for our application, as well as publishing vendor resources.
11 | |
12 | */
13 |
14 | elixir(function(mix) {
15 | mix.less('app.less')
16 | .scripts([
17 | './node_modules/jquery/dist/jquery.js',
18 | './node_modules/bootstrap/dist/js/bootstrap.js',
19 | './node_modules/list.js/dist/list.js',
20 | './node_modules/holderjs/holder.js',
21 | './node_modules/smooth-scroll/dist/js/smooth-scroll.js',
22 | './node_modules/chart.js/dist/Chart.js',
23 | 'projectlist.js',
24 | 'clickcounter.js',
25 | 'stats.js'
26 | ], 'public/js/app.js')
27 | .version(['js/app.js', 'css/app.css'])
28 | .copy('node_modules/font-awesome/fonts', 'public/fonts')
29 | ;
30 | });
31 |
--------------------------------------------------------------------------------
/package.json:
--------------------------------------------------------------------------------
1 | {
2 | "private": true,
3 | "devDependencies": {
4 | "bootstrap": "^3.3.7",
5 | "chart.js": "^2.4.0",
6 | "font-awesome": "^4.7.0",
7 | "gulp": "^3.8.8",
8 | "holderjs": "^2.9.4",
9 | "jquery": "^3.1.1",
10 | "laravel-elixir": "*",
11 | "list.js": "^1.4.1",
12 | "smooth-scroll": "github:cferdinandi/smooth-scroll"
13 | }
14 | }
15 |
--------------------------------------------------------------------------------
/phpspec.yml:
--------------------------------------------------------------------------------
1 | suites:
2 | main:
3 | namespace: App
4 | psr4_prefix: App
5 | src_path: app
--------------------------------------------------------------------------------
/phpunit.xml:
--------------------------------------------------------------------------------
1 |
2 |
6 | {!! Lang::choice('authors.contributed', $author->count, array('count' => "{$author->count}")) !!} 7 | @if(Auth::check() && Auth::user()->editor) 8 | 9 | {{ trans('master.edit') }} 10 | 11 | @endif 12 |
13 |12 | {{ Lang::choice('authors.contributed', $author->count, array('count' => $author->count)) }} 13 |
14 | @include('project.partials.list', array('projects' => $projects)) 15 |22 | 23 | @foreach($project->authors as $author) 24 | {{{ $author->name }}} 25 | @endforeach 26 | 27 |
28 |29 | 30 | {{{ $project->description }}} 31 | 32 | 33 | @if(Auth::check() && Auth::user()->editor) 34 | {{ trans('master.edit') }} 35 | @endif 36 | @if($project->download_link) 37 | {{ trans('projects.download') }} {{ $project->clicks }} 38 | @else 39 | 40 | @endif 41 | 42 |
43 | @endforeach 44 |15 | 16 | @foreach($project->authors as $author) 17 | {{{ $author->name }}} 18 | @endforeach 19 | 20 |
21 |22 | {{{ $project->description }}} 23 |
24 |25 | @foreach($project->categories as $category) 26 | {{ Lang::choice("categories.{$category->id}",1) }} 27 | @endforeach 28 | @foreach($project->versions as $version) 29 | @if(!$version->deprecated) 30 | {{{ $version->version }}} 31 | @else 32 | {{{ $version->version }}} 33 | @endif 34 | @endforeach 35 | {!! $project->classic_formatted !!} 36 | {!! $project->cx_formatted !!} 37 |
38 |39 | @if(Auth::check() && Auth::user()->editor) 40 | {{ trans('master.edit') }} 41 | @endif 42 | @if($project->download_link) 43 | {{ trans('projects.download') }} {{ $project->clicks }} 44 | @else 45 | 46 | @endif 47 |
48 |