Skip to content

Commit c48b2a2

Browse files
Feat: laravel new veersion add
1 parent 21ab413 commit c48b2a2

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

60 files changed

+2473
-104
lines changed

app/Providers/RouteServiceProvider.php

+1-2
Original file line numberDiff line numberDiff line change
@@ -40,8 +40,7 @@ public function boot()
4040
$this->routes(function () {
4141
Route::prefix('api')
4242
->middleware('api')
43-
->as('api.')
44-
->namespace($this->app->getNamespace().'Http\Controllers\API')
43+
->namespace($this->namespace)
4544
->group(base_path('routes/api.php'));
4645

4746
Route::middleware('web')

config/flare.php

+62
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,62 @@
1+
<?php
2+
3+
return [
4+
/*
5+
|
6+
|--------------------------------------------------------------------------
7+
| Flare API key
8+
|--------------------------------------------------------------------------
9+
|
10+
| Specify Flare's API key below to enable error reporting to the service.
11+
|
12+
| More info: https://flareapp.io/docs/general/projects
13+
|
14+
*/
15+
16+
'key' => env('FLARE_KEY'),
17+
18+
/*
19+
|--------------------------------------------------------------------------
20+
| Reporting Options
21+
|--------------------------------------------------------------------------
22+
|
23+
| These options determine which information will be transmitted to Flare.
24+
|
25+
*/
26+
27+
'reporting' => [
28+
'anonymize_ips' => true,
29+
'collect_git_information' => false,
30+
'report_queries' => true,
31+
'maximum_number_of_collected_queries' => 200,
32+
'report_query_bindings' => true,
33+
'report_view_data' => true,
34+
'grouping_type' => null,
35+
'report_logs' => true,
36+
'maximum_number_of_collected_logs' => 200,
37+
'censor_request_body_fields' => ['password'],
38+
],
39+
40+
/*
41+
|--------------------------------------------------------------------------
42+
| Reporting Log statements
43+
|--------------------------------------------------------------------------
44+
|
45+
| If this setting is `false` log statements won't be sent as events to Flare,
46+
| no matter which error level you specified in the Flare log channel.
47+
|
48+
*/
49+
50+
'send_logs_as_events' => true,
51+
52+
/*
53+
|--------------------------------------------------------------------------
54+
| Censor request body fields
55+
|--------------------------------------------------------------------------
56+
|
57+
| These fields will be censored from your request when sent to Flare.
58+
|
59+
*/
60+
61+
'censor_request_body_fields' => ['password'],
62+
];

config/ignition.php

+126
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,126 @@
1+
<?php
2+
3+
return [
4+
5+
/*
6+
|--------------------------------------------------------------------------
7+
| Editor
8+
|--------------------------------------------------------------------------
9+
|
10+
| Choose your preferred editor to use when clicking any edit button.
11+
|
12+
| Supported: "phpstorm", "vscode", "vscode-insiders", "vscodium", "textmate", "emacs",
13+
| "sublime", "atom", "nova", "macvim", "idea", "netbeans",
14+
| "xdebug"
15+
|
16+
*/
17+
18+
'editor' => env('IGNITION_EDITOR', 'phpstorm'),
19+
20+
/*
21+
|--------------------------------------------------------------------------
22+
| Theme
23+
|--------------------------------------------------------------------------
24+
|
25+
| Here you may specify which theme Ignition should use.
26+
|
27+
| Supported: "light", "dark", "auto"
28+
|
29+
*/
30+
31+
'theme' => env('IGNITION_THEME', 'light'),
32+
33+
/*
34+
|--------------------------------------------------------------------------
35+
| Sharing
36+
|--------------------------------------------------------------------------
37+
|
38+
| You can share local errors with colleagues or others around the world.
39+
| Sharing is completely free and doesn't require an account on Flare.
40+
|
41+
| If necessary, you can completely disable sharing below.
42+
|
43+
*/
44+
45+
'enable_share_button' => env('IGNITION_SHARING_ENABLED', true),
46+
47+
/*
48+
|--------------------------------------------------------------------------
49+
| Register Ignition commands
50+
|--------------------------------------------------------------------------
51+
|
52+
| Ignition comes with an additional make command that lets you create
53+
| new solution classes more easily. To keep your default Laravel
54+
| installation clean, this command is not registered by default.
55+
|
56+
| You can enable the command registration below.
57+
|
58+
*/
59+
'register_commands' => env('REGISTER_IGNITION_COMMANDS', false),
60+
61+
/*
62+
|--------------------------------------------------------------------------
63+
| Ignored Solution Providers
64+
|--------------------------------------------------------------------------
65+
|
66+
| You may specify a list of solution providers (as fully qualified class
67+
| names) that shouldn't be loaded. Ignition will ignore these classes
68+
| and possible solutions provided by them will never be displayed.
69+
|
70+
*/
71+
72+
'ignored_solution_providers' => [
73+
\Facade\Ignition\SolutionProviders\MissingPackageSolutionProvider::class,
74+
],
75+
76+
/*
77+
|--------------------------------------------------------------------------
78+
| Runnable Solutions
79+
|--------------------------------------------------------------------------
80+
|
81+
| Some solutions that Ignition displays are runnable and can perform
82+
| various tasks. Runnable solutions are enabled when your app has
83+
| debug mode enabled. You may also fully disable this feature.
84+
|
85+
*/
86+
87+
'enable_runnable_solutions' => env('IGNITION_ENABLE_RUNNABLE_SOLUTIONS', null),
88+
89+
/*
90+
|--------------------------------------------------------------------------
91+
| Remote Path Mapping
92+
|--------------------------------------------------------------------------
93+
|
94+
| If you are using a remote dev server, like Laravel Homestead, Docker, or
95+
| even a remote VPS, it will be necessary to specify your path mapping.
96+
|
97+
| Leaving one, or both of these, empty or null will not trigger the remote
98+
| URL changes and Ignition will treat your editor links as local files.
99+
|
100+
| "remote_sites_path" is an absolute base path for your sites or projects
101+
| in Homestead, Vagrant, Docker, or another remote development server.
102+
|
103+
| Example value: "/home/vagrant/Code"
104+
|
105+
| "local_sites_path" is an absolute base path for your sites or projects
106+
| on your local computer where your IDE or code editor is running on.
107+
|
108+
| Example values: "/Users/<name>/Code", "C:\Users\<name>\Documents\Code"
109+
|
110+
*/
111+
112+
'remote_sites_path' => env('IGNITION_REMOTE_SITES_PATH', ''),
113+
'local_sites_path' => env('IGNITION_LOCAL_SITES_PATH', ''),
114+
115+
/*
116+
|--------------------------------------------------------------------------
117+
| Housekeeping Endpoint Prefix
118+
|--------------------------------------------------------------------------
119+
|
120+
| Ignition registers a couple of routes when it is enabled. Below you may
121+
| specify a route prefix that will be used to host all internal links.
122+
|
123+
*/
124+
'housekeeping_endpoint_prefix' => '_ignition',
125+
126+
];

config/tinker.php

+50
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,50 @@
1+
<?php
2+
3+
return [
4+
5+
/*
6+
|--------------------------------------------------------------------------
7+
| Console Commands
8+
|--------------------------------------------------------------------------
9+
|
10+
| This option allows you to add additional Artisan commands that should
11+
| be available within the Tinker environment. Once the command is in
12+
| this array you may execute the command in Tinker using its name.
13+
|
14+
*/
15+
16+
'commands' => [
17+
// App\Console\Commands\ExampleCommand::class,
18+
],
19+
20+
/*
21+
|--------------------------------------------------------------------------
22+
| Auto Aliased Classes
23+
|--------------------------------------------------------------------------
24+
|
25+
| Tinker will not automatically alias classes in your vendor namespaces
26+
| but you may explicitly allow a subset of classes to get aliased by
27+
| adding the names of each of those classes to the following list.
28+
|
29+
*/
30+
31+
'alias' => [
32+
//
33+
],
34+
35+
/*
36+
|--------------------------------------------------------------------------
37+
| Classes That Should Not Be Aliased
38+
|--------------------------------------------------------------------------
39+
|
40+
| Typically, Tinker automatically aliases classes as you require them in
41+
| Tinker. However, you may wish to never alias certain classes, which
42+
| you may accomplish by listing the classes in the following array.
43+
|
44+
*/
45+
46+
'dont_alias' => [
47+
'App\Nova',
48+
],
49+
50+
];

docker-compose.yml

-74
This file was deleted.

docker/7.4/Dockerfile

+58
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,58 @@
1+
FROM ubuntu:21.04
2+
3+
LABEL maintainer="Taylor Otwell"
4+
5+
ARG WWWGROUP
6+
ARG NODE_VERSION=16
7+
8+
WORKDIR /var/www/html
9+
10+
ENV DEBIAN_FRONTEND noninteractive
11+
ENV TZ=UTC
12+
13+
RUN ln -snf /usr/share/zoneinfo/$TZ /etc/localtime && echo $TZ > /etc/timezone
14+
15+
RUN apt-get update \
16+
&& apt-get install -y gnupg gosu curl ca-certificates zip unzip git supervisor sqlite3 libcap2-bin libpng-dev python2 \
17+
&& mkdir -p ~/.gnupg \
18+
&& chmod 600 ~/.gnupg \
19+
&& echo "disable-ipv6" >> ~/.gnupg/dirmngr.conf \
20+
&& apt-key adv --homedir ~/.gnupg --keyserver hkp://keyserver.ubuntu.com:80 --recv-keys E5267A6C \
21+
&& apt-key adv --homedir ~/.gnupg --keyserver hkp://keyserver.ubuntu.com:80 --recv-keys C300EE8C \
22+
&& echo "deb http://ppa.launchpad.net/ondrej/php/ubuntu hirsute main" > /etc/apt/sources.list.d/ppa_ondrej_php.list \
23+
&& apt-get update \
24+
&& apt-get install -y php7.4-cli php7.4-dev \
25+
php7.4-pgsql php7.4-sqlite3 php7.4-gd \
26+
php7.4-curl php7.4-memcached \
27+
php7.4-imap php7.4-mysql php7.4-mbstring \
28+
php7.4-xml php7.4-zip php7.4-bcmath php7.4-soap \
29+
php7.4-intl php7.4-readline php7.4-pcov \
30+
php7.4-msgpack php7.4-igbinary php7.4-ldap \
31+
php7.4-redis php7.4-xdebug \
32+
&& php -r "readfile('http://getcomposer.org/installer');" | php -- --install-dir=/usr/bin/ --filename=composer \
33+
&& curl -sL https://deb.nodesource.com/setup_$NODE_VERSION.x | bash - \
34+
&& apt-get install -y nodejs \
35+
&& npm install -g npm \
36+
&& curl -sS https://dl.yarnpkg.com/debian/pubkey.gpg | apt-key add - \
37+
&& echo "deb https://dl.yarnpkg.com/debian/ stable main" > /etc/apt/sources.list.d/yarn.list \
38+
&& apt-get update \
39+
&& apt-get install -y yarn \
40+
&& apt-get install -y mysql-client \
41+
&& apt-get install -y postgresql-client \
42+
&& apt-get -y autoremove \
43+
&& apt-get clean \
44+
&& rm -rf /var/lib/apt/lists/* /tmp/* /var/tmp/*
45+
46+
RUN setcap "cap_net_bind_service=+ep" /usr/bin/php7.4
47+
48+
RUN groupadd --force -g $WWWGROUP sail
49+
RUN useradd -ms /bin/bash --no-user-group -g $WWWGROUP -u 1337 sail
50+
51+
COPY start-container /usr/local/bin/start-container
52+
COPY supervisord.conf /etc/supervisor/conf.d/supervisord.conf
53+
COPY php.ini /etc/php/7.4/cli/conf.d/99-sail.ini
54+
RUN chmod +x /usr/local/bin/start-container
55+
56+
EXPOSE 8000
57+
58+
ENTRYPOINT ["start-container"]

docker/7.4/php.ini

+4
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
[PHP]
2+
post_max_size = 100M
3+
upload_max_filesize = 100M
4+
variables_order = EGPCS

0 commit comments

Comments
 (0)