Jump to content

Leaderboard

Popular Content

Showing content with the highest reputation on 05/25/20 in all areas

  1. You mean when you go to install, you click "Importing from a legacy install"? I thought that was fixed now (or at least in its prelim stages). Which part of it didn't work and were there any errors? Yeah you could do it the way @LeonardIGO4036 suggested, but the installer should be the easiest way of doing it.
    2 points
  2. You have to set a name for the route with ->name("admin.update"); and then call it with "staff.admin.update". If you look at the installer module you'll see it. I thought it defined route names automatically but only for resources
    1 point
  3. As in filling the inputs in your form at URL.com/.../edit? You should be able to do something like this: <div class="form-group"> {{ Form::label('FIELDNAME', 'FIELDNAME TEXT TO DISPLAY:') }} <span class="required">*</span> {{ Form::text('FIELDNAME', null, ['class' => 'form-control']) }} <p class="text-danger">{{ $errors->first('FIELDNAME') }}</p> </div> and it should auto-fill the values based on the model data (e.g. $users) you have, provided you have setup the Form::model().. binding before this. For more info, checkout how Nabeel does it in the admin area (airports for example), or view the Collective HTML docs here. If you wanted to make it more traditional, you could also do something like this: <form action="{{ route('/users', $user->id) }}" method="post"> @csrf @method('PUT') OR PATCH <div class="form-group"> <label for="...">FIELDNAME TO DISPLAY</label> <input type="text" name="FIELDNAME" id="..." class="form-control" value="{{ old('FIELDNAME', DEFAULT VALUE) }}" /> OLD will display the last data the user has entered if it fails validation. @errors fields... </div> </form>
    1 point
  4. Hey, phpvms 7 is built on Laravel, and I've taken a look at the DB tables. As you have guessed, the same import CSV files you used for phpvms v2/v5 wouldn't work. The documentation says that you will be able to do an import thought SSH Terminal using the following artisan command. Ik most of the guys are on TFDi hosting, and the good news is they support SSH Access via cPanel. So when you get phpvms7, all you gotta do is go to cPanel > Terminal > and enter the following command with your DB creds. php artisan phpvms:importer {db_host} {db_name} {db_user} {db_pass?} more information here: https://docs.phpvms.net/setup/importing-from-v2-v5 On a side note, There is this awesome tool https://virtualairlineschedules.net/ provides data (airports, aircrafts, schedules) which support phpvms7. The only thing left to actually import from your old VA DB is, Pilot Data & PIREP Data, which also can be imported manually I've been working on Laravel projects for a while now. I created a custom VMS for a client who were running on phpVMS earlier. It was fairly very easy to get all their data from the DB and put it into a format where it was accepted by my VMS because the database tables were much similar. So, the possibility that it can be done without using the Terminal in phpvms7 is still there. I've attached a screenie for reference from when I tried to export data from a phpvms v2 based VA to a custom Laravel VMS. In conclusion, the odds are that there would be a full featured import tool when phpVMS is released, so we'll cross that bridge when we get to it! Cheers.
    1 point
×
×
  • Create New...