Where communities thrive


  • Join over 1.5M+ people
  • Join over 100K+ communities
  • Free without limits
  • Create your own community
People
Repo info
Activity
    tacone
    @tacone
    it should be easy enough to add a custom field for that, though.
    Maykonn Welington Candido
    @Maykonn
    @tacone
    tacone
    @tacone
    @Maykonn yes, precisely. If you get something working, be sure to send a pull request to @zofe :)
    Maykonn Welington Candido
    @Maykonn
    @tacone Yes, Thanks!
    Nicolae
    @nicolaeturcan
    Hey guys, I want to do a multi-language form. Do you think I can manage it with rapyd?
    tacone
    @tacone
    @nicolaeturcan I did it myself. It depends on how you plan to do build your form though.
    how you structure your models, etc.
    Felice Ostuni
    @zofe
    @nicolaeturcan it depends by your models, I agree with @tacone if you need something like title_en, title_es, in the same table just add field and I suggest a custom form layout.
    If you need a master-detail to store "n" languages (oneToMany..)
    it's different, I hope to add some master-detail samples in the demo application
    Sandro Zacchino
    @szacchino

    Hi zofe. First of all thank you for the quality of your library. I'm facing this problem: I have a Dataform with an image field. 1) I'm trying to figure out how to make a deferredMove preserving the file extension of uploaded file: if I use

    $myform->add('image', 'Immagine', 'image')->fit('300','200')->moveDeferred('uploads/products/', 'product_{{ $id }}') ;

    the $id is expanded correctly but every other php instruction I insert in the blade brackets generates an exception. 2) is it possible to do the step 1) and generate at the same time a thumbnail for the uploaded image?

    Sandro Zacchino
    @szacchino
    (for the step 1 I currently used a /{{ $id }}/original_filename approach)
    tacone
    @tacone
    @szacchino you should perhaps include the stacktrace for the exception
    secondly the policy seems not to generate the thumbnails at saving but doing it dinamically at run-time with libraries like this https://github.com/BKWLD/croppa or this (the one I currently use: https://github.com/Folkloreatelier/laravel-image ). I don't remember what @zofe is using though.
    tacone
    @tacone
    if you don't like the idea, you may try to use a saving hook on your dataform, and do the thumbnailing manually
    Felice Ostuni
    @zofe
    Just to say that I recently started a big project-porting from CI to Laravel.. so I'll restart an active development of rapyd (1.3 or 2.0 branch ? dunno)
    tacone
    @tacone
    :+1:
    Felice Ostuni
    @zofe
    2.1 I'm switching to L 5.1 , note I'll switch dev-master to 5.1 soon
    Tibor Szász
    @tiborsaas
    Hi,
    documentation is a bit lacking
    it's not clear where to add 'Zofe\Rapyd\RapydServiceProvider',
    in the app.php
    I'm on L5.1
    added it to config/app.php
    but got
    [Symfony\Component\Debug\Exception\FatalErrorException]
    Class 'Zofe\Rapyd\RapydServiceProvider' not found
    after running php artisan vendor:publish
    Tibor Szász
    @tiborsaas
    WIKI's install method is different
    but it also fails

    php artisan clear-compiled

    [Symfony\Component\Debug\Exception\FatalErrorException]
    Class 'Zofe\Rapyd\RapydServiceProvider' not found

    Tibor Szász
    @tiborsaas
    Another problem:
    Rapyid seems to depend on intervention/imageˇ
    which is also not documented
    ah, my bad. ext-fileinfo was missing :) I have a total fresh install here :)
    Tibor Szász
    @tiborsaas
    I got it :)
    Install guide is confusing
    it should say:
    1: Edit composer.json
    2: Run > composer update zofe/rapyd
    3: add 'Zofe\Rapyd\RapydServiceProvider', to config/app.php
    4: run > php artisan vendor:publish
    it all might be obvious if you are experienced with laravel, but I'm still a newbie with it
    tacone
    @tacone
    Hey @kowdermeister, very good!
    Rapyd is still a little library (pretty much only one contributor: @zofe ) so the docs are lacking, especially in the face of Laravel 4 to 5 migration. If you find something that could be improved in the readme, please edit it and send a pull request. Github makes it very easy, and it would be much appreciated :smile:
    tacone
    @tacone

    Good news everybody

    We just added a multiselect field to the main branch, you can use it just like the checkboxgroup (see the rapyd demo for clues). If you're still on Laravel 4.2 see this gist to learn how to implement it yourself.

    The motivation is to let you easily use Select2 to implement constrained tag fields.

    Alexander
    @xxxcoltxxx

    Hey guys!
    I'm have a trouble:
    Project.php:

    class Project extends Model
    {
        public function projectType()
        {
            return $this->belongsTo(ProjectType::class);
        }
    }

    ProjectType.php:

    class ProjectType extends Model
    {
        public function project()
        {
            return $this->hasMany(Project::class);
        }
    }

    ProjectsController.php:

    class ProjectsController extends Controller
    {
    
        public function index()
        {
            $form = DataGrid::source(Project::with('projectType'));
            $form->add('id', 'ID', true);
            $form->add('projectType.title', 'Project type', true);
            return view('projects.dataGrid', compact('form'));
        }
    }

    routes.php:

    Route::group(['namespace' => 'Settings', 'prefix' => 'admin'], function() {
        Route::any('projects', 'ProjectsController@index');
    }

    template.blade.php:

    @section('content')
                {!! $form !!}
    @stop

    On /admin/projects?ord=-projectType.title Laravel throws QueryException:
    SQLSTATE[42P01]: Undefined table: 7 ERROR: missing FROM-clause entry for table "projectType" LINE 1: select * from "projects" order by "projectType"."title" desc
    How to fix it? Related table is not loaded =(

    tacone
    @tacone
    @xxxcoltxxx I'm under the suspicion that you missed some import statement.
    tacone This message was deleted
    tacone
    @tacone
    Rapyd has a new widget: a sortable tree. :) http://www.rapyd.com/rapyd-demo/datatree
    hayat97
    @hayat97
    Awesome @tacone 👍👍
    tacone
    @tacone
    @/all test. (excuse me)
    does it work?
    Tsvetan
    @n0Sp00n
    Hello all
    Can someone help me with storing relation belongsToMany in a pivot table with rapyd. I'm fresh to this thing, so not sure yet how it works.