Questions tagged as 'laravel'

0
answers

Centralizing information

Good morning. We are starting to develop several small web solutions (We use Laravel) to meet the needs of our client, based on this I came up with a big question. I would like to centralize all information that will be used throughout the proje...
asked by 23.05.2018 / 13:27
1
answer

Reduce function in the controller laravel

I would like to know if you have how to rewrite the function below in a cleaner way, without so many if / elseif. public function pesquisa(Request $request) { if (! Gate::allows('celular')) { return abort(401);...
asked by 18.05.2018 / 14:24
1
answer

whereIn and whereNotIn clauses

I have two tables, one I have the disciplines and the other I have the period_disciplines, filter effect in the course and period. I need to bring only the disciplines that are not released in the table of period_disciplines, so that the user ca...
asked by 26.05.2018 / 15:27
0
answers

File of common functions among various projects in Laravel

I am developing a large web project, a project that is a cluster of subprojects programmed in Laravel. Of course, this project has many common functions to be used between several files and classes of each of these subprojects. What I would like...
asked by 24.05.2018 / 21:39
2
answers

Search the database and return the value - Laravel

I'm doing a search in my database, I want to get the value found and save it (are two different tables) but the value is not being saved, the number 0 is being saved. I use this command in my controller: $clientes = DB::table('cliente')->...
asked by 17.05.2018 / 15:05
0
answers

Server.php deleted alone in Laravel 5.6

When I stop executing in cmd the php artisan serves it automatically deletes my server.php and I can not create another to put in place, nor create another project with the same name using composer, says that I am not allowed to do this even thou...
asked by 16.05.2018 / 19:07
0
answers

Add field dynamically in forms and glitches via request - Laravel

Good evening guys, I am creating a form with Laravel 5.5 and the user can add fields dynamically, but the Controller is not recognizing the fields added after the page loads. <div class="box-body"> <table class="tabl...
asked by 22.05.2018 / 22:58
0
answers

Select 2 on bootstrap 3

There is some way to use select2 in Bootstrap 3.3, terial some example to try to implement, I'm building my TCC on the adminLTE template and needed something like it in some queries, thank you! I was able to implement this way: <div clas...
asked by 22.05.2018 / 19:40
1
answer

Call to a member function change () on null

Context: Home I am trying to update the project data in edit mode, but this error is occurring. How do I fix this? Errors: ProjectController.phpclass:methodupdates<?phpnamespaceApp\Http\Controllers\Admin;useIlluminate\Support\Facades\D...
asked by 15.05.2018 / 16:38
1
answer

Search merge Laravel

I have the function in my controller: public function pesquisa(Request $request) { if (! Gate::allows('celular')) { return abort(401); } $marcas = CelularMarca::orderBy('nome', 'asc')->pluck('nome','...
asked by 15.05.2018 / 19:20