parent
5a33751c85
commit
eab808b367
|
|
@ -1,34 +0,0 @@
|
|||
<?php namespace App\Console\Commands;
|
||||
|
||||
use Illuminate\Console\Command;
|
||||
use Illuminate\Foundation\Inspiring;
|
||||
use Symfony\Component\Console\Input\InputOption;
|
||||
use Symfony\Component\Console\Input\InputArgument;
|
||||
|
||||
class Inspire extends Command {
|
||||
|
||||
/**
|
||||
* The console command name.
|
||||
*
|
||||
* @var string
|
||||
*/
|
||||
protected $name = 'inspire';
|
||||
|
||||
/**
|
||||
* The console command description.
|
||||
*
|
||||
* @var string
|
||||
*/
|
||||
protected $description = 'Display an inspiring quote';
|
||||
|
||||
/**
|
||||
* Execute the console command.
|
||||
*
|
||||
* @return mixed
|
||||
*/
|
||||
public function handle()
|
||||
{
|
||||
$this->comment(PHP_EOL.Inspiring::quote().PHP_EOL);
|
||||
}
|
||||
|
||||
}
|
||||
|
|
@ -0,0 +1,62 @@
|
|||
<?php namespace App\Console\Commands;
|
||||
|
||||
use App\Models\Timezone;
|
||||
use DB;
|
||||
use Illuminate\Console\Command;
|
||||
use Illuminate\Support\Facades\Artisan;
|
||||
|
||||
class Init extends Command
|
||||
{
|
||||
/**
|
||||
* The name and signature of the console command.
|
||||
*
|
||||
* @var string
|
||||
*/
|
||||
protected $signature = 'attendize:install';
|
||||
|
||||
/**
|
||||
* The console command description.
|
||||
*
|
||||
* @var string
|
||||
*/
|
||||
protected $description = 'Install of Attendize';
|
||||
|
||||
/**
|
||||
* Execute the console command.
|
||||
*
|
||||
* @return mixed
|
||||
*/
|
||||
public function handle()
|
||||
{
|
||||
try {
|
||||
DB::connection();
|
||||
} catch (\Exception $e) {
|
||||
$this->error('Unable to connect to database.');
|
||||
$this->error('Please fill valid database credentials into .env and rerun this command.');
|
||||
|
||||
return;
|
||||
}
|
||||
|
||||
$this->comment('Attempting to install Attendize.');
|
||||
|
||||
if (!env('APP_KEY')) {
|
||||
$this->info('Generating app key');
|
||||
Artisan::call('key:generate');
|
||||
} else {
|
||||
$this->comment('App key exists -- skipping');
|
||||
}
|
||||
|
||||
|
||||
$this->info('Migrating database');
|
||||
Artisan::call('migrate', ['--force' => true]);
|
||||
|
||||
if (!Timezone::count()) {
|
||||
$this->info('Seeding DB data');
|
||||
Artisan::call('db:seed', ['--force' => true]);
|
||||
} else {
|
||||
$this->comment('Data already seeded -- skipping');
|
||||
}
|
||||
|
||||
$this->comment('Success! You can now run Attendize');
|
||||
}
|
||||
}
|
||||
|
|
@ -12,6 +12,7 @@ class Kernel extends ConsoleKernel {
|
|||
*/
|
||||
protected $commands = [
|
||||
'App\Console\Commands\Inspire',
|
||||
'App\Console\Commands\Install'
|
||||
];
|
||||
|
||||
/**
|
||||
|
|
|
|||
|
|
@ -8,10 +8,10 @@
|
|||
https://www.attendize.com
|
||||
|
||||
|
||||
----------
|
||||
######Demo Event Page: http://attendize.website/e/1/acmes-amazing-demo-event
|
||||
|
||||
|
||||
*Attendize* is an open-source event ticketing and event management application built using the Laravel PHP framework. Attendize was created to offer event organisers a simple solution to managing general admission events.
|
||||
*Attendize* is an open-source event ticketing and event management application built using the Laravel PHP framework. Attendize was created to offer event organisers a simple solution to managing general admission events, without paying extortionate service fees.
|
||||
|
||||
> PLEASE NOTE: Attendize is still in the early stages development and therefore is likely to contain bugs. Be weary about using Attendize in a production environment.
|
||||
|
||||
|
|
|
|||
|
|
@ -0,0 +1,52 @@
|
|||
{!! HTML::script('vendor/simplemde/dist/simplemde.min.js') !!}
|
||||
{!! HTML::style('vendor/simplemde/dist/simplemde.min.css') !!}
|
||||
|
||||
|
||||
|
||||
<script>
|
||||
$(function() {
|
||||
|
||||
|
||||
try {
|
||||
$('.geocomplete').geocomplete({
|
||||
details: "form.gf",
|
||||
types: ["geocode", "establishment"]
|
||||
}).bind("geocode:result", function(event, result) {
|
||||
console.log(result);
|
||||
}, 1000);
|
||||
|
||||
} catch (e) {
|
||||
console.log(e);
|
||||
}
|
||||
|
||||
var simplemde = new SimpleMDE({
|
||||
element: $(".ediatble")[0],
|
||||
spellChecker: false,
|
||||
status: false
|
||||
});
|
||||
$('.hasDatepicker').DateTimePicker({
|
||||
dateTimeFormat: window.Attendize.DateTimeFormat
|
||||
});
|
||||
|
||||
});
|
||||
</script>
|
||||
<style>
|
||||
.editor-toolbar {
|
||||
border-radius: 0 !important;
|
||||
}
|
||||
.CodeMirror, .CodeMirror-scroll {
|
||||
min-height: 100px !important;
|
||||
}
|
||||
|
||||
.create_organiser, .address-manual {
|
||||
padding: 10px;
|
||||
border: 1px solid #ddd;
|
||||
margin-top: 10px;
|
||||
margin-bottom: 10px;
|
||||
background-color: #FAFAFA;
|
||||
}
|
||||
|
||||
.in-form-link {
|
||||
display: block; padding: 5px;margin-bottom: 5px;padding-left: 0;
|
||||
}
|
||||
</style>
|
||||
Loading…
Reference in New Issue