Where communities thrive


  • Join over 1.5M+ people
  • Join over 100K+ communities
  • Free without limits
  • Create your own community
People
Repo info
Activity
  • Jul 16 2016 16:39
    alexweissman closed #581
  • Jul 16 2016 16:39
    alexweissman commented #581
  • Jul 16 2016 16:38
    alexweissman opened #581
  • Jul 16 2016 16:38
    alexweissman edited #580
  • Jul 16 2016 16:37
    alexweissman closed #580
  • Jul 16 2016 16:37
    alexweissman commented #580
  • Jul 16 2016 16:37
    alexweissman reopened #580
  • Jul 16 2016 16:35
    alexweissman closed #580
  • Jul 16 2016 16:35
    alexweissman reopened #580
  • Jul 16 2016 16:35
    alexweissman commented #580
  • Jul 16 2016 16:33
    alexweissman closed #580
  • Jul 16 2016 16:32
    alexweissman edited #580
  • Jul 16 2016 16:31
    alexweissman opened #580
  • Jul 16 2016 16:29
    alexweissman commented #566
  • Jul 16 2016 16:29
    alexweissman commented #566
  • Jul 16 2016 16:29
    alexweissman commented #566
  • Jul 16 2016 16:29
    alexweissman commented #566
  • Jul 16 2016 16:29
    alexweissman commented #566
  • Jul 16 2016 16:23
    alexweissman commented #566
  • Jul 16 2016 16:22
    alexweissman commented #566
Mike Jacobs
@Netrilix
Would you like to know how many pages it takes to describe a database about mailing turnips?
Alex Weissman
@alexweissman
yes
Mike Jacobs
@Netrilix
195
Alex Weissman
@alexweissman
it is done.
Timeka
@Mekaboo
Hello there, Im sorry and will break down the code to smaller blocks. I still have this issue though: error on line 48 at column 8: Opening and ending tag mismatch: link line 0 and head
Below is a rendering of the page up to the first error. How do I solve this? Its talking about the <head> tags
thedarkshee
@thedarkshee
Hi All, I've been trying to work with the new(?) Eloquent models in UF since the last time I used UF. I am trying to get the latest record in each group. But many of the functions I've seen in Eloquent examples are not present in my model. E.g. max()
So far I have $hb = Heartbeat::distinct()->orderBy('last_checkin', 'desc')->groupBy('logical_id')->groupBy('physical_id')->get();
My table is something like:
id   logical_id    physical_id     last_checkin
1      1               1               <timestampA>
2      1               1               <timestampA + 1>
3      2               3               <timestampB>
4      2               3               <timestampB + 1>
I am trying to get Rows 2 and 4, but it's returning rows 1 and 3
thedarkshee
@thedarkshee
I could do that in plain SQL, but flailing like a failfish doing this in the new Eloquent :(
thedarkshee
@thedarkshee

ok, achieved it, had to use "Capsule::" instead of "DB::" in the examples.

Added use \Illuminate\Database\Capsule\Manager as Capsule; at the top and then:

$hb = Heartbeat::select('logical_id', 'physical_id', Capsule::raw('max(last_checkin) as last_checkin'))->orderBy('last_checkin', 'desc')->groupBy('logical_id')->get();
Louis Charette
@lcharette
Most people are now on rocket chat if you can't find your answer. Find it here https://chat.userfrosting.com/channel/support
thedarkshee
@thedarkshee
thanks!
Roger
@Ardibee
Quick (or hopefully quick) question on Fortress and the WDVSS validations...
I have a bootstrap form with a form-group of check-boxes (i.e. tick many). The field is given an array-like-name pick-several[] and each choice has its own value so in PHP I end up with an array of variable length with the selected values in the posted data $post->pick-several[]. (How) can I construct a member_of validation rule whereby each member of the array has to be one of a set of recognised values?
Roger
@Ardibee
Another question, probably for @Netrilix : are there any examples / tutorials / best practice for extending UserFrosting in its current guise? I'm currently chipping away at a plugin approach which works well for Models, Controllers, templates but eventually I am going to want to extend User and have properties in the User object that relate to my particular use case. Even if I keep the links to organisations (e.g user works for a particular company and at one or more specific branches of that company) in separate tables, I still need to add in HasMany or BelongsTo relationships. So should I hack the core User model or do I extend it? If I extend it, can I make the $app instance of User my own class (the extended version)?
Louis Charette
@lcharette
I’m writing something right now I’ll post Github about that. For users, if you go up on the support channel on rocket chat (FYI, @Netrilix and @alexweissman moved everything to rocket chat :: https://chat.userfrosting.com/channel/support ) you’ll find how I added a list of projects to the user object.
Alex Weissman
@alexweissman
@Ardibee: like @lcharette said, chat has moved so please join us there instead.
Roger
@Ardibee
@alexweissman @lcharette (Malou?) - hint taken, am now signed up to rocket chat, thanks :-)
Valentin
@Momentomore
So now everything will be in Rocket chat&
?
Louis Charette
@lcharette
Yup
zharding
@zharding
Question, anyone have any idea how to upload files with ufFormSubmit? I for some reason cannot find an answer... it is probably simple too lol
sand33p
@sand33p
how to get logged user_id?
Valentin
@Momentomore
$this->_app->user->id;
I guess
sand33p
@sand33p
thankyou, it works @Momentomore
Valentin
@Momentomore
You can do the same to access group object for example if you need primary group or smth)
Mike Jacobs
@Netrilix
@zharding We've all moved over to RocketChat ( http://chat.userfrosting.com )... should be able to help you over there, I do file uploads with UF
sand33p
@sand33p
need help in solving error while creating relationship with user got a error " PHP Fatal error: Class 'UserFrosting/User' not found"
Alex Weissman
@alexweissman
hi @sand33p, perhaps you didn't see the announcement. We are no longer using Gitter. Please join us in our new chat server: https://chat.userfrosting.com
frostmongol
@frostmongol
Anyone online to give me a hand?
Valentin
@Momentomore
More chances to catch smb at rocket chat)
And depending on question u have
Moises lopes ferreira
@selique
i need fast solution (site cms with profiles) some people have some code ?
using of corse userfrosting
Alex Weissman
@alexweissman
@selique not sure how you found this chat room but it is now deprecated. Please join us at https://chat.userfrosting.com instead.
gianmaria88
@gianmaria88
Hi @alexweissman , I am testing Lesson n.3 on Userfrosting to insert Staff Event. But when I put $new_event = new StaffEvent([.. in initialize.php it return error PHP Fatal error: Class 'StaffEvent' not found in... Where should i insert that code ? I updated composer too
Andrew Geddes
@Editandrew
wtf people he gave the new link
Rausch Merscen
@rauschmerscen
hello people. where is the error log file? i accidentally changed some critical things that i can;t remember and now i'm getting error 500 when I login as admin.
Rausch Merscen
@rauschmerscen
never mind
Punita Ojha
@punitaojha
This message was deleted
rohan0077
@rohan0077
Error
massimo110
@massimo110

Could not compile source code.

{"code"

DevWay1617
@DevWay1617

4
down vote
favorite
I am using jhipster with MongoDB. How can we define JPA Entity representing nested document in MongoDb collection using "yo jhipster:entity"

eg:

{ _id: "joe", name: "Joe Bookreader", addresses: [ { street: "123 Fake Street", city: "Faketon", state: "MA", zip: "12345" }, { street: "1 Some Other Street", city: "Boston", state: "MA", zip: "12345" } ] }

Renato Marinho
@renatomarinho
This message was deleted
Renato Marinho
@renatomarinho
This message was deleted
Renato Marinho
@renato2marinho_twitter
Hey guys, I'm GitScrum founder. I want to invite group members to get to know GitScrum. Site: https://site.gitscrum.com/
melissa ann mallia
@missy198426_twitter
oooooh nice