Welcome to OStack Knowledge Sharing Community for programmer and developer-Open, Learning and Share
Welcome To Ask or Share your Answers For Others

Categories

Recent questions tagged eloquent

0 votes
258 views
1 answer
    This question already has answers here: question from:https://stackoverflow.com/questions/65850696/understanding-laravel-migrations-do-you-need-to-create-a-mrigration-file...
asked Oct 7, 2021 in Technique[技术] by 深蓝 (71.8m points)
0 votes
371 views
1 answer
    I need to detach a single belongs to many relationship however I can't figure it out. Below ... ://stackoverflow.com/questions/65852524/detach-single-belongstomany-relationship...
asked Oct 7, 2021 in Technique[技术] by 深蓝 (71.8m points)
0 votes
259 views
1 answer
    I have an order management system website, which uses Laravel and I need to add a function. I have ... /stackoverflow.com/questions/65857514/dynamic-fetching-laravel-based-on-date...
asked Oct 7, 2021 in Technique[技术] by 深蓝 (71.8m points)
0 votes
299 views
1 answer
    I'm getting this error : IlluminateDatabaseQueryException SQLSTATE[22P02]: Invalid text representation: 7 ERROR: ... /65860460/dealing-with-malfromed-array-errors-in-laravel...
asked Oct 7, 2021 in Technique[技术] by 深蓝 (71.8m points)
0 votes
357 views
1 answer
    I making app to filters products I want to add this query chunk to my newQuery: $products = $products ... stackoverflow.com/questions/65860943/add-orderbyraw-to-newquery-in-laravel...
asked Oct 7, 2021 in Technique[技术] by 深蓝 (71.8m points)
0 votes
228 views
1 answer
    I have two Eloquent models named Question and Answer with one to many relationship between them (one question ... -of-a-relationship-bettween-two-models-causes-a-relationshi...
asked Oct 7, 2021 in Technique[技术] by 深蓝 (71.8m points)
0 votes
187 views
1 answer
    For example : If I select from a list of clients ( company names ) and it takes you to a dashboard or a page ... create-a-page-or-pages-in-laravel-that-shows-a-spefic-client-dash...
asked Oct 7, 2021 in Technique[技术] by 深蓝 (71.8m points)
0 votes
213 views
1 answer
    I have 2 model in relationship Tickets model public function status(){ return $this->hasMany(Status::class); } ... /65896184/laravel-8-x-select-all-record-with-latest-status...
asked Oct 7, 2021 in Technique[技术] by 深蓝 (71.8m points)
0 votes
405 views
1 answer
    Can anyone help me out to convert this SQL to query builder! SELECT topwords.*, mw.word AS my_word FROM ... com/questions/65902457/how-to-convert-sql-to-query-builder-laravel...
asked Oct 7, 2021 in Technique[技术] by 深蓝 (71.8m points)
0 votes
385 views
1 answer
    im new to laravel. i want to make an admin panel with multiple role, and any role except admin that ... //stackoverflow.com/questions/65915966/how-to-make-laravel-admin-approval...
asked Oct 7, 2021 in Technique[技术] by 深蓝 (71.8m points)
0 votes
289 views
1 answer
    It's very easy to insert a register when I have a JSON to insert an Article like this: --JSON to ... .com/questions/65918539/laravel-how-to-insert-nested-data-into-database...
asked Oct 7, 2021 in Technique[技术] by 深蓝 (71.8m points)
0 votes
277 views
1 answer
    I'm trying to convert our database from ID to UUID. When I run the following code to update the ... //stackoverflow.com/questions/65922618/laravel-update-chunked-result-skips-rows...
asked Oct 7, 2021 in Technique[技术] by 深蓝 (71.8m points)
0 votes
316 views
1 answer
    Using Laravel 5.7, it seems Eloquent Query builder is adding a (redundant?) is not null - why is this? Output - ... -5-7-query-builder-adding-redundant-is-not-null-to-querys-sql...
asked Oct 7, 2021 in Technique[技术] by 深蓝 (71.8m points)
0 votes
297 views
1 answer
    I have a query like following and wants to set all Customer with building areas < 500 building_areas on end ... .com/questions/65950891/how-to-use-laravel-orderbyraw-with-condition...
asked Oct 7, 2021 in Technique[技术] by 深蓝 (71.8m points)
0 votes
366 views
1 answer
    I am fetching data from database which is returning almost 5000 records form database . when I see resource size over ... how-to-reduce-size-of-data-in-laravel-for-ajax-response...
asked Oct 7, 2021 in Technique[技术] by 深蓝 (71.8m points)
0 votes
241 views
1 answer
    I know this is me being dumb and not understanding the documentation but I am trying to use the belongsTo feature ... /65646684/laravel-8-using-belongs-to-failing-when-using-where...
asked Oct 7, 2021 in Technique[技术] by 深蓝 (71.8m points)
0 votes
389 views
1 answer
    In L-4 it was simple: $random_quote = Quotation::all()->random(1); But now in L-5 not a single method ... :https://stackoverflow.com/questions/26983186/how-get-random-row-laravel-5...
asked Oct 7, 2021 in Technique[技术] by 深蓝 (71.8m points)
0 votes
208 views
1 answer
    The following soft delete code works fine for me: $post = Post::find($post_id); $post->delete(); The ... ://stackoverflow.com/questions/25576024/laravel-soft-delete-restore-error...
asked Oct 7, 2021 in Technique[技术] by 深蓝 (71.8m points)
0 votes
250 views
1 answer
    The following soft delete code works fine for me: $post = Post::find($post_id); $post->delete(); The ... ://stackoverflow.com/questions/25576024/laravel-soft-delete-restore-error...
asked Oct 7, 2021 in Technique[技术] by 深蓝 (71.8m points)
0 votes
335 views
1 answer
    I have some query that I need to pass to another query using query builder $query = DB::table('table ... stackoverflow.com/questions/27314506/laravel-how-to-get-query-with-bindings...
asked Oct 6, 2021 in Technique[技术] by 深蓝 (71.8m points)
0 votes
363 views
1 answer
    Is there a way that I can get the current database table in use by the model that I'm in? I ... stackoverflow.com/questions/14082682/how-to-return-database-table-name-in-laravel...
asked Oct 6, 2021 in Technique[技术] by 深蓝 (71.8m points)
0 votes
235 views
1 answer
    Is there a way that I can get the current database table in use by the model that I'm in? I ... stackoverflow.com/questions/14082682/how-to-return-database-table-name-in-laravel...
asked Oct 6, 2021 in Technique[技术] by 深蓝 (71.8m points)
0 votes
205 views
1 answer
    I have many to many relation which is inserting data correctly but when I try to fetch data it ... .com/questions/66065784/belongstomanyrelation-not-working-in-laravel-8...
asked Oct 6, 2021 in Technique[技术] by 深蓝 (71.8m points)
0 votes
240 views
1 answer
    I have many to many relation which is inserting data correctly but when I try to fetch data it ... .com/questions/66065784/belongstomanyrelation-not-working-in-laravel-8...
asked Oct 6, 2021 in Technique[技术] by 深蓝 (71.8m points)
0 votes
194 views
1 answer
    Im looking for a way to query eloquent over http with json or something similar. POST `/persons/find` ... //stackoverflow.com/questions/66067491/laravel-querying-eloquant-over-http...
asked Oct 6, 2021 in Technique[技术] by 深蓝 (71.8m points)
0 votes
465 views
1 answer
    I posted this question yesterday but I think it's unclear so I deleted it and posted it again with more details. In my ... AS Aggregate FROM "users" WHERE "ID_USER" LIKE '145/%';...
asked Jan 27, 2021 in Technique[技术] by 深蓝 (71.8m points)
0 votes
267 views
1 answer
    Hi every one i want to pass condition like this: (start <= date1 and end >= date1) || (start <= ... ')->whereNull('deleted_at'); Any one can helpe ? thanks...
asked Jan 27, 2021 in Technique[技术] by 深蓝 (71.8m points)
0 votes
1.3k views
1 answer
    in my posts table have extra_category column with saved mutiple value(json) same ["12","15","23"] now I want use ... on the model protected $casts = ['extra_category' => 'array',]...
asked Jan 25, 2021 in Technique[技术] by 深蓝 (71.8m points)
To see more, click for the full list of questions or popular tags.
Ask a question:
Welcome to OStack Knowledge Sharing Community for programmer and developer-Open, Learning and Share
Click Here to Ask a Question

...